Skip to content

chore: improvements peter/feat-revive branch #2834

chore: improvements peter/feat-revive branch

chore: improvements peter/feat-revive branch #2834

GitHub Actions / clippy failed Oct 23, 2024 in 0s

clippy

12 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 12
Warning 0
Note 0
Help 0

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check failure on line 768 in crates/build/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `map_err` over `inspect_err`

error: using `map_err` over `inspect_err`
   --> crates/build/src/lib.rs:768:75
    |
768 |                 local_build(&crate_metadata, &optimization_passes, &args).map_err(
    |                                                                           ^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
help: try
    |
768 ~                 local_build(&crate_metadata, &optimization_passes, &args).inspect_err(
769 |                     |e| {
770 |                         // build error -> bundle is stale
771 ~                         clean_metadata();
    |

Check failure on line 346 in crates/build/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

error: useless use of `format!`
   --> crates/build/src/lib.rs:346:22
    |
346 |                 Some(format!("{}", rustflags)),
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `rustflags.to_string()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
    = note: `-D clippy::useless-format` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::useless_format)]`

Check failure on line 768 in crates/build/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `map_err` over `inspect_err`

error: using `map_err` over `inspect_err`
   --> crates/build/src/lib.rs:768:75
    |
768 |                 local_build(&crate_metadata, &optimization_passes, &args).map_err(
    |                                                                           ^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
help: try
    |
768 ~                 local_build(&crate_metadata, &optimization_passes, &args).inspect_err(
769 |                     |e| {
770 |                         // build error -> bundle is stale
771 ~                         clean_metadata();
    |

Check failure on line 346 in crates/build/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

error: useless use of `format!`
   --> crates/build/src/lib.rs:346:22
    |
346 |                 Some(format!("{}", rustflags)),
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `rustflags.to_string()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
    = note: `-D clippy::useless-format` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::useless_format)]`

Check failure on line 221 in crates/build/src/docker.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `map` over `inspect`

error: using `map` over `inspect`
   --> crates/build/src/docker.rs:221:43
    |
221 |     build_result.metadata_result.as_mut().map(|m| {
    |                                           ^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
    = note: `-D clippy::manual-inspect` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::manual_inspect)]`
help: try
    |
221 ~     build_result.metadata_result.as_mut().inspect(|m| {
222 |         m.dest_bundle = host_folder.join(
...
232 |                 .expect("cannot strip prefix"),
233 ~         );
    |

Check failure on line 768 in crates/build/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `map_err` over `inspect_err`

error: using `map_err` over `inspect_err`
   --> crates/build/src/lib.rs:768:75
    |
768 |                 local_build(&crate_metadata, &optimization_passes, &args).map_err(
    |                                                                           ^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
help: try
    |
768 ~                 local_build(&crate_metadata, &optimization_passes, &args).inspect_err(
769 |                     |e| {
770 |                         // build error -> bundle is stale
771 ~                         clean_metadata();
    |

Check failure on line 346 in crates/build/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

error: useless use of `format!`
   --> crates/build/src/lib.rs:346:22
    |
346 |                 Some(format!("{}", rustflags)),
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `rustflags.to_string()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
    = note: `-D clippy::useless-format` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::useless_format)]`

Check failure on line 830 in crates/build/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `extra_lints`

error: unused variable: `extra_lints`
   --> crates/build/src/lib.rs:830:9
    |
830 |         extra_lints,
    |         ^^^^^^^^^^^-
    |         |
    |         help: try removing the field
    |
    = note: `-D unused-variables` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unused_variables)]`

Check failure on line 221 in crates/build/src/docker.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `map` over `inspect`

error: using `map` over `inspect`
   --> crates/build/src/docker.rs:221:43
    |
221 |     build_result.metadata_result.as_mut().map(|m| {
    |                                           ^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
    = note: `-D clippy::manual-inspect` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::manual_inspect)]`
help: try
    |
221 ~     build_result.metadata_result.as_mut().inspect(|m| {
222 |         m.dest_bundle = host_folder.join(
...
232 |                 .expect("cannot strip prefix"),
233 ~         );
    |

Check failure on line 830 in crates/build/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `extra_lints`

error: unused variable: `extra_lints`
   --> crates/build/src/lib.rs:830:9
    |
830 |         extra_lints,
    |         ^^^^^^^^^^^-
    |         |
    |         help: try removing the field
    |
    = note: `-D unused-variables` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unused_variables)]`

Check failure on line 221 in crates/build/src/docker.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `map` over `inspect`

error: using `map` over `inspect`
   --> crates/build/src/docker.rs:221:43
    |
221 |     build_result.metadata_result.as_mut().map(|m| {
    |                                           ^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
    = note: `-D clippy::manual-inspect` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::manual_inspect)]`
help: try
    |
221 ~     build_result.metadata_result.as_mut().inspect(|m| {
222 |         m.dest_bundle = host_folder.join(
...
232 |                 .expect("cannot strip prefix"),
233 ~         );
    |

Check failure on line 830 in crates/build/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `extra_lints`

error: unused variable: `extra_lints`
   --> crates/build/src/lib.rs:830:9
    |
830 |         extra_lints,
    |         ^^^^^^^^^^^-
    |         |
    |         help: try removing the field
    |
    = note: `-D unused-variables` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unused_variables)]`