clippy
6 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 6 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.70.0 (90c541806 2023-05-31)
- cargo 1.70.0 (ec8a8a0ca 2023-04-25)
- clippy 0.1.70 (90c5418 2023-05-31)
Annotations
Check failure on line 39 in src/client/mod.rs
github-actions / clippy
this could be a `const fn`
error: this could be a `const fn`
--> src/client/mod.rs:34:5
|
34 | / pub fn new(client: Client, output_format: OutputFormat) -> Self {
35 | | Self {
36 | | client,
37 | | output_format,
38 | | }
39 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
note: the lint level is defined here
--> src/main.rs:1:27
|
1 | #![deny(clippy::pedantic, clippy::nursery)]
| ^^^^^^^^^^^^^^^
= note: `#[deny(clippy::missing_const_for_fn)]` implied by `#[deny(clippy::nursery)]`
Check failure on line 39 in src/client/mod.rs
github-actions / clippy
this could be a `const fn`
error: this could be a `const fn`
--> src/client/mod.rs:34:5
|
34 | / pub fn new(client: Client, output_format: OutputFormat) -> Self {
35 | | Self {
36 | | client,
37 | | output_format,
38 | | }
39 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
note: the lint level is defined here
--> src/main.rs:1:27
|
1 | #![deny(clippy::pedantic, clippy::nursery)]
| ^^^^^^^^^^^^^^^
= note: `#[deny(clippy::missing_const_for_fn)]` implied by `#[deny(clippy::nursery)]`
Check failure on line 857 in src/cli/simple/command/mod.rs
github-actions / clippy
variables can be used directly in the `format!` string
error: variables can be used directly in the `format!` string
--> src/cli/simple/command/mod.rs:857:21
|
857 | println!("{}", formatted);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
857 - println!("{}", formatted);
857 + println!("{formatted}");
|
Check failure on line 853 in src/cli/simple/command/mod.rs
github-actions / clippy
variables can be used directly in the `format!` string
error: variables can be used directly in the `format!` string
--> src/cli/simple/command/mod.rs:853:21
|
853 | println!("{}", formatted);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
note: the lint level is defined here
--> src/main.rs:1:9
|
1 | #![deny(clippy::pedantic, clippy::nursery)]
| ^^^^^^^^^^^^^^^^
= note: `#[deny(clippy::uninlined_format_args)]` implied by `#[deny(clippy::pedantic)]`
help: change this to
|
853 - println!("{}", formatted);
853 + println!("{formatted}");
|
Check failure on line 857 in src/cli/simple/command/mod.rs
github-actions / clippy
variables can be used directly in the `format!` string
error: variables can be used directly in the `format!` string
--> src/cli/simple/command/mod.rs:857:21
|
857 | println!("{}", formatted);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
857 - println!("{}", formatted);
857 + println!("{formatted}");
|
Check failure on line 853 in src/cli/simple/command/mod.rs
github-actions / clippy
variables can be used directly in the `format!` string
error: variables can be used directly in the `format!` string
--> src/cli/simple/command/mod.rs:853:21
|
853 | println!("{}", formatted);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
note: the lint level is defined here
--> src/main.rs:1:9
|
1 | #![deny(clippy::pedantic, clippy::nursery)]
| ^^^^^^^^^^^^^^^^
= note: `#[deny(clippy::uninlined_format_args)]` implied by `#[deny(clippy::pedantic)]`
help: change this to
|
853 - println!("{}", formatted);
853 + println!("{formatted}");
|