Skip to content
Myr

Ignore unnecessary_cast clippy lint in test

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

warning: casting integer literal to `u8` is unnecessary --> tests/test_ensure.rs:634:30 | 634 | let test = || Ok(ensure!(0 as int!(...) != 0)); | ^^^^^^^^^^^^^^ help: try: `0_u8` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default warning: casting integer literal to `u8` is unnecessary --> tests/test_ensure.rs:637:30 | 637 | let test = || Ok(ensure!(0 as int![...] != 0)); | ^^^^^^^^^^^^^^ help: try: `0_u8` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast warning: casting integer literal to `u8` is unnecessary --> tests/test_ensure.rs:640:30 | 640 | let test = || Ok(ensure!(0 as int! {...} != 0)); | ^^^^^^^^^^^^^^^ help: try: `0_u8` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

authored by David Tolnay · committed by David Tolnay · parent 4802253 · 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
17 unmodified lines
18 clippy::redundant_closure_call,19 clippy::redundant_pattern_matching,20 clippy::too_many_lines,21 clippy::unit_arg,22 clippy::unnecessary_cast,23 clippy::while_immutable_condition,24 clippy::zero_ptr,25 irrefutable_let_patterns26)]
702 unmodified lines