Skip to content

Commit 2a5e492

Browse files
vireshkroypat
authored andcommitted
atomic_bitmap: Suppress clippy warning
Clippy complains about `clippy::redundant-clone` as the "cloned value is neither consumed nor mutated". Since we just need to test the value, what we are doing is fine too. Suppress the warning. Signed-off-by: Viresh Kumar <[email protected]>
1 parent 5ec3a8b commit 2a5e492

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bitmap/backend/atomic_bitmap.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ mod tests {
191191
assert!(b.is_addr_set(256));
192192
assert!(!b.is_addr_set(384));
193193

194+
#[allow(clippy::redundant_clone)]
194195
let copy_b = b.clone();
195196
assert!(copy_b.is_addr_set(256));
196197
assert!(!copy_b.is_addr_set(384));

0 commit comments

Comments
 (0)