aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-07 18:48:32 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-07 18:48:32 +0200
commit1e4814568b3be937b7ddc55686a6aa2a34c587f6 (patch)
tree459c604026821d995b0a3853e6ac480cd83a93a0
parent0c0a02ad03eabceed6f213ac9e380ac20841fc17 (diff)
downloadgarage-1e4814568b3be937b7ddc55686a6aa2a34c587f6.tar.gz
garage-1e4814568b3be937b7ddc55686a6aa2a34c587f6.zip
remove useless clippy allow
-rw-r--r--src/model/s3/block_ref_table.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/model/s3/block_ref_table.rs b/src/model/s3/block_ref_table.rs
index 1134922e..9589b4aa 100644
--- a/src/model/s3/block_ref_table.rs
+++ b/src/model/s3/block_ref_table.rs
@@ -59,7 +59,6 @@ impl TableSchema for BlockRefTable {
old: Option<&Self::E>,
new: Option<&Self::E>,
) -> db::TxOpResult<()> {
- #[allow(clippy::or_fun_call)]
let block = old.or(new).unwrap().block;
let was_before = old.map(|x| !x.deleted.get()).unwrap_or(false);
let is_after = new.map(|x| !x.deleted.get()).unwrap_or(false);