Skip to content

Create zet search Command (#8) #21

Create zet search Command (#8)

Create zet search Command (#8) #21

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 43 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:40:5
   |
40 | /     return match cli.subcommand {
41 | |         Subcommand::Create => create::run(),
42 | |         Subcommand::Search(args) => search::run(args),
43 | |     };
   | |_____^
   |
   = 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`
   |
40 ~     match cli.subcommand {
41 +         Subcommand::Create => create::run(),
42 +         Subcommand::Search(args) => search::run(args),
43 ~     }
   |

Check warning on line 20 in src/lib.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/lib.rs:20:24
   |
20 |             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 14 in src/lib.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/lib.rs:14:20
   |
14 |         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