Skip to content

Commit 8652bf2

Browse files
committed
Resolve ignored_unit_patterns pedantic clippy lint
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`
1 parent ab08483 commit 8652bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/de.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2406,7 +2406,7 @@ where
24062406
if self_delineated_value {
24072407
Ok(value)
24082408
} else {
2409-
self.peek_end_of_value().map(|_| value)
2409+
self.peek_end_of_value().map(|()| value)
24102410
}
24112411
}
24122412
Err(e) => {

0 commit comments

Comments
 (0)