From f87d2543954b83c8f883eb6d9a4975ffa95ffc7b Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Wed, 15 Apr 2026 00:50:18 +0200 Subject: [PATCH] clippy: Disallow lint `identity_op` --- crates/radicle-protocol/src/service/filter.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/radicle-protocol/src/service/filter.rs b/crates/radicle-protocol/src/service/filter.rs index 8a891632..ff27baf2 100644 --- a/crates/radicle-protocol/src/service/filter.rs +++ b/crates/radicle-protocol/src/service/filter.rs @@ -1,4 +1,3 @@ -#![allow(clippy::identity_op)] use std::ops::{Deref, DerefMut}; pub use bloomy::BloomFilter; @@ -7,13 +6,13 @@ use radicle::identity::RepoId; /// Size in bytes of *large* bloom filter. /// It can store about 13'675 items with a false positive rate of 1%. -pub const FILTER_SIZE_L: usize = 16 * 1024; +pub const FILTER_SIZE_L: usize = 1024 * 16; /// Size in bytes of *medium* bloom filter. /// It can store about 3'419 items with a false positive rate of 1%. -pub const FILTER_SIZE_M: usize = 4 * 1024; +pub const FILTER_SIZE_M: usize = 1024 * 4; /// Size in bytes of *small* bloom filter. /// It can store about 855 items with a false positive rate of 1%. -pub const FILTER_SIZE_S: usize = 1 * 1024; +pub const FILTER_SIZE_S: usize = 1024; /// Valid filter sizes. pub const FILTER_SIZES: [usize; 3] = [FILTER_SIZE_S, FILTER_SIZE_M, FILTER_SIZE_L];