chore(dep): bump serde from 1.0.214 to 1.0.215 in /crates/rsonpath-test-codegen in the test-deps group #756
Triggered via pull request
November 18, 2024 21:09
Status
Success
Total duration
26m 49s
Artifacts
–
Annotations
2 errors
this `map_or` is redundant:
crates/rsonpath-lib/src/input/padding.rs#L518
error: this `map_or` is redundant
--> 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
|
this `map_or` is redundant:
crates/rsonpath-lib/src/input/padding.rs#L301
error: this `map_or` is redundant
--> 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)]`
|