Repository navigation
Commit 583939e
committed
codegen: Ignore clippy::assert_is_empty lint
```
error: used `assert!` to check that a value is not empty
--> tools/codegen/src/lib.rs:54:13
|
54 | assert!(!bin.as_slice().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assert_is_empty
= note: `-D clippy::assert-is-empty` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::assert_is_empty)]`
help: use `assert_ne!` to show the value on failure
|
54 - assert!(!bin.as_slice().is_empty());
54 + assert_ne!(bin.as_slice(), []);
|
```1 parent 6c6fd71 commit 583939e
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments