From 077dd1cde95debb41a6cd153407e17e48ceb71bf Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 15 Mar 2022 16:06:50 +0100 Subject: Clippy --- src/model/block_ref_table.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/model/block_ref_table.rs') diff --git a/src/model/block_ref_table.rs b/src/model/block_ref_table.rs index 0ab3d7e8..b6945403 100644 --- a/src/model/block_ref_table.rs +++ b/src/model/block_ref_table.rs @@ -52,7 +52,8 @@ impl TableSchema for BlockRefTable { type Filter = DeletedFilter; fn updated(&self, old: Option, new: Option) { - let block = &old.as_ref().or_else(|| new.as_ref()).unwrap().block; + #[allow(clippy::or_fun_call)] + let block = &old.as_ref().or(new.as_ref()).unwrap().block; let was_before = old.as_ref().map(|x| !x.deleted.get()).unwrap_or(false); let is_after = new.as_ref().map(|x| !x.deleted.get()).unwrap_or(false); if is_after && !was_before { -- cgit v1.2.3