Merge pull request #46 from Zoxc/has_cap #77
GitHub Actions / clippy
failed
Dec 3, 2023 in 1s
clippy
3 errors, 1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 3 |
Warning | 1 |
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 2852 in src/lib.rs
github-actions / clippy
this loop never actually loops
error: this loop never actually loops
--> src/lib.rs:2850:13
|
2850 | / for _ in v.splice(.., []) {
2851 | | unreachable!()
2852 | | }
| |_____________^
|
= 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
|
2850 | if let Some(_) = v.splice(.., []).next() {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check failure on line 2839 in src/lib.rs
github-actions / clippy
this loop never actually loops
error: this loop never actually loops
--> src/lib.rs:2837:13
|
2837 | / for _ in v.drain(..) {
2838 | | unreachable!()
2839 | | }
| |_____________^
|
= 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
|
2837 | if let Some(_) = v.drain(..).next() {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check failure on line 2830 in src/lib.rs
github-actions / clippy
this loop never actually loops
error: this loop never actually loops
--> src/lib.rs:2828:13
|
2828 | / for _ in v.into_iter() {
2829 | | unreachable!();
2830 | | }
| |_____________^
|
= 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
|
2828 | if let Some(_) = v.into_iter().next() {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check warning on line 1969 in src/lib.rs
github-actions / clippy
explicit call to `.into_iter()` in function argument accepting `IntoIterator`
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> src/lib.rs:1969:20
|
1969 | vec.extend(iter.into_iter());
| ^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `iter`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/iter/traits/collect.rs:371:18
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
Loading