feat: add a linkage report subcommand #197
clippy
8 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 8 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.1 (d5c2e9c34 2023-09-13)
- cargo 1.72.1 (103a7ff2e 2023-08-15)
- clippy 0.1.72 (d5c2e9c 2023-09-13)
Annotations
Check failure on line 904 in cargo-dist/src/lib.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> cargo-dist/src/lib.rs:904:19
|
904 | do_pe(&path)?
| ^^^^^ help: change this to: `path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check failure on line 871 in cargo-dist/src/lib.rs
github-actions / clippy
called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
error: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
--> cargo-dist/src/lib.rs:871:29
|
871 | libraries.push((path.split(' ').nth(0).unwrap()).to_owned());
| ^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `path.split(' ').next()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
= note: `-D clippy::iter-nth-zero` implied by `-D warnings`
Check failure on line 860 in cargo-dist/src/lib.rs
github-actions / clippy
single-character string constant used as pattern
error: single-character string constant used as pattern
--> cargo-dist/src/lib.rs:860:41
|
860 | let lines = result.trim_end().split("\n");
| ^^^^ help: try using a `char` instead: `'\n'`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
= note: `-D clippy::single-char-pattern` implied by `-D warnings`
Check failure on line 855 in cargo-dist/src/lib.rs
github-actions / clippy
the borrowed expression implements the required traits
error: the borrowed expression implements the required traits
--> cargo-dist/src/lib.rs:855:14
|
855 | .arg(&path)
| ^^^^^ help: change this to: `path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
Check failure on line 904 in cargo-dist/src/lib.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> cargo-dist/src/lib.rs:904:19
|
904 | do_pe(&path)?
| ^^^^^ help: change this to: `path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check failure on line 871 in cargo-dist/src/lib.rs
github-actions / clippy
called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
error: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
--> cargo-dist/src/lib.rs:871:29
|
871 | libraries.push((path.split(' ').nth(0).unwrap()).to_owned());
| ^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `path.split(' ').next()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
= note: `-D clippy::iter-nth-zero` implied by `-D warnings`
Check failure on line 860 in cargo-dist/src/lib.rs
github-actions / clippy
single-character string constant used as pattern
error: single-character string constant used as pattern
--> cargo-dist/src/lib.rs:860:41
|
860 | let lines = result.trim_end().split("\n");
| ^^^^ help: try using a `char` instead: `'\n'`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
= note: `-D clippy::single-char-pattern` implied by `-D warnings`
Check failure on line 855 in cargo-dist/src/lib.rs
github-actions / clippy
the borrowed expression implements the required traits
error: the borrowed expression implements the required traits
--> cargo-dist/src/lib.rs:855:14
|
855 | .arg(&path)
| ^^^^^ help: change this to: `path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`