Skip to content

Automatic fixes from cargo clippy --fix --all-features; cargo fmt #2457

Automatic fixes from cargo clippy --fix --all-features; cargo fmt

Automatic fixes from cargo clippy --fix --all-features; cargo fmt #2457

GitHub Actions / clippy failed Mar 14, 2024 in 0s

clippy

1 error

Details

Results

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

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check failure on line 420 in partiql-value/src/lib.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`
   --> partiql-value/src/lib.rs:415:21
    |
415 |               true => match (self.0, rhs.0) {
    |  _____________________^
416 | |                 (Value::Missing | Value::Null, Value::Missing | Value::Null) => {
417 | |                     return Value::Boolean(true)
418 | |                 }
419 | |                 _ => {}
420 | |             },
    | |_____________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
note: the lint level is defined here
   --> partiql-value/src/lib.rs:2:9
    |
2   | #![deny(clippy::all)]
    |         ^^^^^^^^^^^
    = note: `#[deny(clippy::single_match)]` implied by `#[deny(clippy::all)]`
help: try
    |
415 ~             true => if let (Value::Missing | Value::Null, Value::Missing | Value::Null) = (self.0, rhs.0) {
416 +                 return Value::Boolean(true)
417 ~             },
    |