chore(dep): bump the test-deps group across 1 directory with 3 updates #612
GitHub Actions / clippy
failed
Dec 16, 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.85.0-nightly (c26db435b 2024-12-15)
- cargo 1.85.0-nightly (769f622e1 2024-12-14)
- clippy 0.1.85 (c26db435bf 2024-12-15)
Annotations
Check failure on line 518 in crates/rsonpath-lib/src/input/padding.rs
github-actions / clippy
this `map_or` can be simplified
error: this `map_or` can be simplified
--> crates/rsonpath-lib/src/input/padding.rs:518:16
|
518 | && preceding_char.map_or(true, |x| x != b'\\')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `(preceding_char != Some(b'\\'))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
Check failure on line 301 in crates/rsonpath-lib/src/input/padding.rs
github-actions / clippy
this `map_or` can be simplified
error: this `map_or` can be simplified
--> crates/rsonpath-lib/src/input/padding.rs:301:67
|
301 | middle_self == middle_other && last_self == last_other && preceding_char.map_or(true, |x| x != b'\\')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `(preceding_char != Some(b'\\'))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `-D clippy::unnecessary-map-or` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_map_or)]`
Loading