From b143add15898ba6d22339b1408e65364d13b65de Mon Sep 17 00:00:00 2001 From: edef Date: Sun, 10 Apr 2022 22:18:25 +0000 Subject: ripple/fossil: use [T]::is_empty Thanks, Clippy! Change-Id: I9d8d154db76c49807262bb07f37aec0c17725739 --- ripple/fossil/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ripple/fossil') diff --git a/ripple/fossil/src/lib.rs b/ripple/fossil/src/lib.rs index c7957ba..7dca72e 100644 --- a/ripple/fossil/src/lib.rs +++ b/ripple/fossil/src/lib.rs @@ -102,7 +102,7 @@ impl Store { buffer.extend_from_slice(&chunk); } - if buffer.len() == 0 { + if buffer.is_empty() { panic!("blob not found"); } -- cgit 1.4.1