Create the zet create
command
#12
GitHub Actions / clippy
succeeded
Oct 29, 2023 in 1s
clippy
3 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 3 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.73.0 (cc66ad468 2023-10-03)
- cargo 1.73.0 (9c4383fb5 2023-08-26)
- clippy 0.1.73 (cc66ad4 2023-10-03)
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