Skip to content

Commit

Permalink
Ignore deref_addrof clippy lint in test
Browse files Browse the repository at this point in the history
    warning: immediately dereferencing a reference
       --> tests/test_ensure.rs:168:40
        |
    168 |     let test = || Ok(ensure!(&mut x == *&&mut &2));
        |                                        ^^^^^^^^^ help: try: `&mut &2`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof
        = note: `#[warn(clippy::deref_addrof)]` on by default
  • Loading branch information
dtolnay committed May 17, 2024
1 parent d1742a8 commit 3578823
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_ensure.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![allow(
clippy::bool_to_int_with_if,
clippy::char_lit_as_u8,
clippy::deref_addrof,
clippy::diverging_sub_expression,
clippy::extra_unused_type_parameters,
clippy::if_same_then_else,
Expand Down

0 comments on commit 3578823

Please sign in to comment.