Skip to content

Create the zet create command (#5) #15

Create the zet create command (#5)

Create the zet create command (#5) #15

GitHub Actions / clippy succeeded Nov 1, 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.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

See this annotation in the file changed.

@github-actions 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 47 in src/create.rs

See this annotation in the file changed.

@github-actions 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:47:24
   |
47 |             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 41 in src/create.rs

See this annotation in the file changed.

@github-actions 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:41:20
   |
41 |         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