From 785a7b77d1b1d0fc6b600af734fdbfcb69dc62ed Mon Sep 17 00:00:00 2001 From: edef Date: Mon, 11 Apr 2022 17:01:07 +0000 Subject: ripple/fossil: don't .ok().expect() Result::expect already does the right thing, and discards less information. Change-Id: I2d2fbd1981d4c3b84bb287fb4d79d985f8e465c9 --- ripple/fossil/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ripple/fossil/src/lib.rs b/ripple/fossil/src/lib.rs index 95dec02..008240a 100644 --- a/ripple/fossil/src/lib.rs +++ b/ripple/fossil/src/lib.rs @@ -56,7 +56,7 @@ impl Store { Node::File(FileRef { executable, ident: self.write_blob(&blob), - size: blob.len().try_into().ok().expect("overflow"), + size: blob.len().try_into().expect("overflow"), }) } ty if ty.is_symlink() => { -- cgit 1.4.1