From 666e72482a0e8a8ae669c76b4ce85affea1803d0 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Wed, 10 May 2023 16:55:08 -0600 Subject: [PATCH] Address Clippy lints. --- shardtree/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shardtree/src/lib.rs b/shardtree/src/lib.rs index 500149c..c6acb7a 100644 --- a/shardtree/src/lib.rs +++ b/shardtree/src/lib.rs @@ -1678,7 +1678,7 @@ impl ShardStore for MemoryShardStore { return Ok(true); } - return Ok(false); + Ok(false) } fn remove_checkpoint(&mut self, checkpoint_id: &C) -> Result<(), Self::Error> { @@ -2349,6 +2349,7 @@ impl< position: Position, as_of_checkpoint: &C, ) -> Result { + #[allow(clippy::blocks_in_if_conditions)] if self.get_marked_leaf(position).is_some() { if self .store