Fix clippy lints #77
Annotations
7 warnings
Run clechasseur/rs-clippy-check@v3
Unexpected input(s) 'token', valid inputs are ['toolchain', 'args', 'use-cross', 'working-directory']
|
Run clechasseur/rs-clippy-check@v3:
src/error.rs#L16
warning: variant `NotAFile` is never constructed
--> src/error.rs:16:5
|
11 | pub enum FireError {
| --------- variant in this enum
...
16 | NotAFile(PathBuf),
| ^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
src/io.rs#L19
warning: function `writeln_color` is never used
--> src/io.rs:19:8
|
19 | pub fn writeln_color(stream: &mut StandardStream, content: &str, color: Option<Color>) {
| ^^^^^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
src/io.rs#L24
warning: function `write_spec` is never used
--> src/io.rs:24:8
|
24 | pub fn write_spec(stream: &mut StandardStream, content: &str, spec: &ColorSpec) {
| ^^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
src/io.rs#L34
warning: function `write_body` is never used
--> src/io.rs:34:8
|
34 | pub fn write_body(stream: &mut StandardStream, content_type: Option<&str>, body: String) {
| ^^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
src/prop.rs#L87
warning: variants `Key` and `Value` are never constructed
--> src/prop.rs:87:5
|
85 | pub enum ParsePropertyError {
| ------------------ variants in this enum
86 | Entry(String),
87 | Key(String),
| ^^^
88 | Value(String),
| ^^^^^
|
= note: `ParsePropertyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
Run clechasseur/rs-clippy-check@v3:
src/args.rs#L128
warning: match expression looks like `matches!` macro
--> src/args.rs:128:9
|
128 | / match self.use_colors() {
129 | | ColorChoice::Never => false,
130 | | _ => true,
131 | | }
| |_________^ help: try: `!matches!(self.use_colors(), ColorChoice::Never)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
= note: `#[warn(clippy::match_like_matches_macro)]` on by default
|
The logs for this run have expired and are no longer available.
Loading