From 8652bf2bc5dac3b5496725452cfe14ca573f6232 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 11 Aug 2023 20:11:30 -0700 Subject: [PATCH] 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` --- src/de.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de.rs b/src/de.rs index 7f3145980..7aad50b96 100644 --- a/src/de.rs +++ b/src/de.rs @@ -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) => {