Make thin-vec compatible with no_std #78
GitHub Actions / clippy
failed
Dec 3, 2023 in 0s
clippy
3 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 3 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.74.0 (79e9716c9 2023-11-13)
- cargo 1.74.0 (ecb9851af 2023-10-18)
- clippy 0.1.74 (79e9716 2023-11-13)
Annotations
Check failure on line 2858 in src/lib.rs
github-actions / clippy
this loop never actually loops
error: this loop never actually loops
--> src/lib.rs:2856:13
|
2856 | / for _ in v.splice(.., []) {
2857 | | unreachable!()
2858 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
help: if you need the first element of the iterator, try writing
|
2856 | if let Some(_) = v.splice(.., []).next() {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check failure on line 2845 in src/lib.rs
github-actions / clippy
this loop never actually loops
error: this loop never actually loops
--> src/lib.rs:2843:13
|
2843 | / for _ in v.drain(..) {
2844 | | unreachable!()
2845 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
help: if you need the first element of the iterator, try writing
|
2843 | if let Some(_) = v.drain(..).next() {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check failure on line 2836 in src/lib.rs
github-actions / clippy
this loop never actually loops
error: this loop never actually loops
--> src/lib.rs:2834:13
|
2834 | / for _ in v.into_iter() {
2835 | | unreachable!();
2836 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
= note: `#[deny(clippy::never_loop)]` on by default
help: if you need the first element of the iterator, try writing
|
2834 | if let Some(_) = v.into_iter().next() {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Loading