Skip to content
Myr

Ignore deref_addrof clippy lint in test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by David Tolnay · committed by David Tolnay · parent d1742a8 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:tests/test_ensure.rs+1 added
1#![allow(2 clippy::bool_to_int_with_if,3 clippy::char_lit_as_u8,4 clippy::deref_addrof,5 clippy::diverging_sub_expression,6 clippy::extra_unused_type_parameters,7 clippy::if_same_then_else,8 clippy::ifs_same_cond,
718 unmodified lines