Skip to content
GitHub Actions / Clippy Output succeeded Sep 30, 2023 in 0s

Clippy Output

4 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 4
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 warning on line 61 in src/backends/pnpm.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> src/backends/pnpm.rs:61:32
   |
61 |             fs::create_dir_all(&app.output_root.join("bin"))?;
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `app.output_root.join("bin")`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 24 in src/backends/pnpm.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

redundant closure

warning: redundant closure
  --> src/backends/pnpm.rs:24:22
   |
24 |                 .map(|x| String::from(x))
   |                      ^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `String::from`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Check warning on line 61 in src/backends/npm.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> src/backends/npm.rs:61:32
   |
61 |             fs::create_dir_all(&app.output_root.join("bin"))?;
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `app.output_root.join("bin")`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `#[warn(clippy::needless_borrow)]` on by default

Check warning on line 24 in src/backends/npm.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

redundant closure

warning: redundant closure
  --> src/backends/npm.rs:24:22
   |
24 |                 .map(|x| String::from(x))
   |                      ^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `String::from`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
   = note: `#[warn(clippy::redundant_closure)]` on by default