Skip to content

Add mod lint button and lint report GUI #31

Add mod lint button and lint report GUI

Add mod lint button and lint report GUI #31

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy failed Aug 14, 2023 in 0s

clippy

4 errors

Details

Results

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

Versions

  • rustc 1.73.0-nightly (1b198b3a1 2023-08-13)
  • cargo 1.73.0-nightly (7e9de3f4e 2023-08-13)
  • clippy 0.1.73 (1b198b3 2023-08-13)

Annotations

Check failure on line 822 in src/gui/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant pattern matching, consider using `is_some()`

error: redundant pattern matching, consider using `is_some()`
   --> src/gui/mod.rs:822:16
    |
822 |         if let Some(_) = &self.lint_window {
    |         -------^^^^^^^-------------------- help: try: `if self.lint_window.is_some()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
    = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`

Check failure on line 822 in src/gui/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant pattern matching, consider using `is_some()`

error: redundant pattern matching, consider using `is_some()`
   --> src/gui/mod.rs:822:16
    |
822 |         if let Some(_) = &self.lint_window {
    |         -------^^^^^^^-------------------- help: try: `if self.lint_window.is_some()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
    = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`

Check failure on line 507 in src/gui/message.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

question mark operator is useless here

error: question mark operator is useless here
   --> src/gui/message.rs:504:5
    |
504 | /     Ok(tokio::task::spawn_blocking(|| {
505 | |         crate::mod_lint::lint(&mod_specs.into_iter().zip(paths).collect::<Vec<_>>())
506 | |     })
507 | |     .await??)
    | |_____________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
    = note: `-D clippy::needless-question-mark` implied by `-D warnings`
help: try removing question mark and `Ok()`
    |
504 ~     tokio::task::spawn_blocking(|| {
505 +         crate::mod_lint::lint(&mod_specs.into_iter().zip(paths).collect::<Vec<_>>())
506 +     })
507 +     .await?
    |

Check failure on line 507 in src/gui/message.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

question mark operator is useless here

error: question mark operator is useless here
   --> src/gui/message.rs:504:5
    |
504 | /     Ok(tokio::task::spawn_blocking(|| {
505 | |         crate::mod_lint::lint(&mod_specs.into_iter().zip(paths).collect::<Vec<_>>())
506 | |     })
507 | |     .await??)
    | |_____________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
    = note: `-D clippy::needless-question-mark` implied by `-D warnings`
help: try removing question mark and `Ok()`
    |
504 ~     tokio::task::spawn_blocking(|| {
505 +         crate::mod_lint::lint(&mod_specs.into_iter().zip(paths).collect::<Vec<_>>())
506 +     })
507 +     .await?
    |