Skip to content

Commit

Permalink
Resolve ignored_unit_patterns pedantic clippy lint
Browse files Browse the repository at this point in the history
    warning: matching over `()` is more explicit
        --> src/de.rs:2409:59
         |
    2409 | ...                   self.peek_end_of_value().map(|_| value)
         |                                                     ^ help: use `()` instead of `_`: `()`
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
         = note: `-W clippy::ignored-unit-patterns` implied by `-W clippy::pedantic`
  • Loading branch information
dtolnay committed Aug 12, 2023
1 parent ab08483 commit 8652bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2406,7 +2406,7 @@ where
if self_delineated_value {
Ok(value)
} else {
self.peek_end_of_value().map(|_| value)
self.peek_end_of_value().map(|()| value)
}
}
Err(e) => {
Expand Down

0 comments on commit 8652bf2

Please sign in to comment.