Skip to content

verify and reproducible subcommands #124

verify and reproducible subcommands

verify and reproducible subcommands #124

GitHub Actions / clippy succeeded Feb 1, 2024 in 0s

clippy

3 warnings

Details

Results

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

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 24 in src/verify.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

stripping a prefix manually

warning: stripping a prefix manually
  --> src/verify.rs:24:38
   |
24 |     let s = if s.starts_with("0x") { &s[2..] } else { s };
   |                                      ^^^^^^^
   |
note: the prefix was tested here
  --> src/verify.rs:24:13
   |
24 |     let s = if s.starts_with("0x") { &s[2..] } else { s };
   |             ^^^^^^^^^^^^^^^^^^^^^^^
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip
   = note: `#[warn(clippy::manual_strip)]` on by default
help: try using the `strip_prefix` method
   |
24 |     let s = if let Some(<stripped>) = s.strip_prefix("0x") { <stripped> } else { s };
   |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   ~~~~~~~~~~

Check warning on line 116 in src/project.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

warning: deref which would be done by auto-deref
   --> src/project.rs:116:23
    |
116 |                 .read(&mut *buf)
    |                       ^^^^^^^^^ help: try: `&mut buf`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check warning on line 99 in src/project.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

warning: deref which would be done by auto-deref
  --> src/project.rs:99:19
   |
99 |     keccak.update(&*output.stdout);
   |                   ^^^^^^^^^^^^^^^ help: try: `&output.stdout`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
   = note: `#[warn(clippy::explicit_auto_deref)]` on by default