Skip to content

Merge pull request #12 from AhmedSoliman/pr12

Sign in for the full log view
GitHub Actions / clippy succeeded Mar 19, 2024 in 1s

clippy

2 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 2
Note 0
Help 0

Versions

  • rustc 1.78.0-beta.1 (efd9d2df1 2024-03-18)
  • cargo 1.78.0-beta.1 (2fe739fcf 2024-03-15)
  • clippy 0.1.78 (efd9d2d 2024-03-18)

Annotations

Check warning on line 44 in cling/src/extractors.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `let...else` may be rewritten with the `?` operator

warning: this `let...else` may be rewritten with the `?` operator
  --> cling/src/extractors.rs:42:9
   |
42 | /         let Some(state) = args.get::<State<S>>() else {
43 | |             return None;
44 | |         };
   | |__________^ help: replace it with: `let state = args.get::<State<S>>()?;`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
   = note: `#[warn(clippy::question_mark)]` on by default

Check warning on line 240 in cling/src/error.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

empty string literal in `writeln!`

warning: empty string literal in `writeln!`
   --> cling/src/error.rs:240:25
    |
240 |                 let _ = writeln!(f, "");
    |                         ^^^^^^^^^^----^
    |                                   |
    |                                   help: remove the empty string
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#writeln_empty_string
    = note: `#[warn(clippy::writeln_empty_string)]` on by default