verify and reproducible subcommands #118
Annotations
6 warnings
stripping a prefix manually:
src/verify.rs#L24
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 };
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
|
deref which would be done by auto-deref:
src/project.rs#L118
warning: deref which would be done by auto-deref
--> src/project.rs:118:23
|
118 | .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
|
deref which would be done by auto-deref:
src/project.rs#L101
warning: deref which would be done by auto-deref
--> src/project.rs:101:19
|
101 | 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
|
stripping a prefix manually:
src/verify.rs#L24
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 };
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
|
deref which would be done by auto-deref:
src/project.rs#L118
warning: deref which would be done by auto-deref
--> src/project.rs:118:23
|
118 | .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
|
deref which would be done by auto-deref:
src/project.rs#L101
warning: deref which would be done by auto-deref
--> src/project.rs:101:19
|
101 | 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
|