Create the zet create
command
#12
GitHub Actions / clippy
succeeded
Oct 29, 2023 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.74.0-beta.4 (489647f98 2023-10-21)
- cargo 1.74.0-beta.4 (ecb9851af 2023-10-18)
- clippy 0.1.74 (489647f 2023-10-21)
Annotations
Check warning on line 26 in src/main.rs
github-actions / clippy
unneeded `return` statement
warning: unneeded `return` statement
--> src/main.rs:24:5
|
24 | / return match cli.subcommand {
25 | | Subcommand::Create => create::run(),
26 | | };
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
24 ~ match cli.subcommand {
25 + Subcommand::Create => create::run(),
26 ~ }
|
Check warning on line 48 in src/create.rs
github-actions / clippy
useless conversion to the same type: `std::string::String`
warning: useless conversion to the same type: `std::string::String`
--> src/create.rs:48:24
|
48 | Ok(val) => String::from(val),
| ^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `val`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
Check warning on line 42 in src/create.rs
github-actions / clippy
useless conversion to the same type: `std::string::String`
warning: useless conversion to the same type: `std::string::String`
--> src/create.rs:42:20
|
42 | Ok(val) => String::from(val),
| ^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `val`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
Loading