clippy
6 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 6 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0 (129f3b996 2024-06-10)
- cargo 1.79.0 (ffa9cf99a 2024-06-03)
- clippy 0.1.79 (129f3b9 2024-06-10)
Annotations
Check failure on line 239 in cargo-dist/src/build/cargo.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/build/cargo.rs:239:79
|
239 | let mut command = make_build_cargo_target_command(&cargo.cmd, &rustflags, &target, auditable);
| ^^^^^^^ help: change this to: `target`
|
= 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`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
Check failure on line 179 in cargo-dist/src/build/cargo.rs
github-actions / clippy
the borrowed expression implements the required traits
error: the borrowed expression implements the required traits
--> cargo-dist/src/build/cargo.rs:179:27
|
179 | .env("RUSTFLAGS", &rustflags)
| ^^^^^^^^^^ help: change this to: `rustflags`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`
Check failure on line 239 in cargo-dist/src/build/cargo.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/build/cargo.rs:239:79
|
239 | let mut command = make_build_cargo_target_command(&cargo.cmd, &rustflags, &target, auditable);
| ^^^^^^^ help: change this to: `target`
|
= 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`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
Check failure on line 179 in cargo-dist/src/build/cargo.rs
github-actions / clippy
the borrowed expression implements the required traits
error: the borrowed expression implements the required traits
--> cargo-dist/src/build/cargo.rs:179:27
|
179 | .env("RUSTFLAGS", &rustflags)
| ^^^^^^^^^^ help: change this to: `rustflags`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`
Check failure on line 343 in cargo-dist/src/build/cargo.rs
github-actions / clippy
redundant field names in struct initialization
error: redundant field names in struct initialization
--> cargo-dist/src/build/cargo.rs:343:13
|
343 | features: features,
| ^^^^^^^^^^^^^^^^^^ help: replace it with: `features`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Check failure on line 315 in cargo-dist/src/build/cargo.rs
github-actions / clippy
redundant field names in struct initialization
error: redundant field names in struct initialization
--> cargo-dist/src/build/cargo.rs:315:13
|
315 | features: features,
| ^^^^^^^^^^^^^^^^^^ help: replace it with: `features`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
= note: `-D clippy::redundant-field-names` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::redundant_field_names)]`