| error: used `assert!` to check that a value is empty | |
| --> tests/ui/assert_is_empty_msrv.rs:13:5 | |
| | | |
| LL | assert!(items.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_eq!` to show the value on failure | |
| | | |
| LL - assert!(items.is_empty()); | |
| LL + assert_eq!(items, [] as [u8; 0]); | |
| | | |
| error: used `assert!` to check that a value is empty | |
| --> tests/ui/assert_is_empty_msrv.rs:19:5 | |
| | | |
| LL | assert!(heap.is_empty()); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use `assert_eq!` to show the value on failure | |
| | | |
| LL - assert!(heap.is_empty()); | |
| LL + assert_eq!(heap.as_slice(), [] as [u8; 0]); | |
| | | |
| error: used `assert!` to check that a value is not empty | |
| --> tests/ui/assert_is_empty_msrv.rs:21:5 | |
| | | |
| LL | assert!(!heap.is_empty()); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use `assert_ne!` to show the value on failure | |
| | | |
| LL - assert!(!heap.is_empty()); | |
| LL + assert_ne!(heap.as_slice(), [] as [u8; 0]); | |
| | | |
| error: used `debug_assert!` to check that a value is empty | |
| --> tests/ui/assert_is_empty_msrv.rs:23:5 | |
| | | |
| LL | debug_assert!(borrowed.is_empty()); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use `debug_assert_eq!` to show the value on failure | |
| | | |
| LL - debug_assert!(borrowed.is_empty()); | |
| LL + debug_assert_eq!(borrowed.as_slice(), [] as [u8; 0]); | |
| | | |
| error: used `debug_assert!` to check that a value is not empty | |
| --> tests/ui/assert_is_empty_msrv.rs:25:5 | |
| | | |
| LL | debug_assert!(!borrowed.is_empty()); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use `debug_assert_ne!` to show the value on failure | |
| | | |
| LL - debug_assert!(!borrowed.is_empty()); | |
| LL + debug_assert_ne!(borrowed.as_slice(), [] as [u8; 0]); | |
| | | |
| error: aborting due to 5 previous errors | |