Skip to content
GitHub Actions / clippy succeeded Apr 12, 2024 in 0s

clippy

4 warnings

Details

Results

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

Versions

  • rustc 1.78.0-nightly (b11fbfbf3 2024-02-03)
  • cargo 1.78.0-nightly (7bb7b5395 2024-01-20)
  • clippy 0.1.77 (b11fbfb 2024-02-03)

Annotations

Check warning on line 51 in build.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

warning: useless use of `format!`
  --> build.rs:51:53
   |
51 |     let wasm_file = base_path.join(&depth_str).join(format!("semaphore.wasm"));
   |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"semaphore.wasm".to_string()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format

Check warning on line 50 in build.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

warning: useless use of `format!`
  --> build.rs:50:53
   |
50 |     let zkey_file = base_path.join(&depth_str).join(format!("semaphore.zkey"));
   |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"semaphore.zkey".to_string()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
   = note: `#[warn(clippy::useless_format)]` on by default

Check warning on line 47 in build.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> build.rs:47:9
   |
47 |         &format!("{depth_subfolder}/semaphore.wasm"),
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{depth_subfolder}/semaphore.wasm")`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 43 in build.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> build.rs:43:9
   |
43 |         &format!("{depth_subfolder}/semaphore.zkey"),
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{depth_subfolder}/semaphore.zkey")`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
   = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default