Skip to content

Change instance when attempting a retry

Sign in for the full log view
GitHub Actions / clippy failed Aug 19, 2024 in 0s

clippy

2 errors

Details

Results

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

Versions

  • rustc 1.80.1 (3f5fd8dd4 2024-08-06)
  • cargo 1.80.1 (376290515 2024-07-16)
  • clippy 0.1.80 (3f5fd8d 2024-08-06)

Annotations

Check failure on line 247 in pkcs11/src/backend/login.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`

error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
   --> pkcs11/src/backend/login.rs:244:25
    |
244 | /                         match self.get_config_user_mode(&user_mode) {
245 | |                             Some(new_conf) => conf = new_conf,
246 | |                             None => {}
247 | |                         }
    | |_________________________^ help: try: `if let Some(new_conf) = self.get_config_user_mode(&user_mode) { conf = new_conf }`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
    = note: `-D clippy::single-match` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::single_match)]`

Check failure on line 247 in pkcs11/src/backend/login.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`

error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
   --> pkcs11/src/backend/login.rs:244:25
    |
244 | /                         match self.get_config_user_mode(&user_mode) {
245 | |                             Some(new_conf) => conf = new_conf,
246 | |                             None => {}
247 | |                         }
    | |_________________________^ help: try: `if let Some(new_conf) = self.get_config_user_mode(&user_mode) { conf = new_conf }`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
    = note: `-D clippy::single-match` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::single_match)]`