From 0819b4b3b9c5d6d6a5f63680227251c376d4cd7c Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Sun, 31 Dec 2023 09:06:26 -0800 Subject: [PATCH] Fix `clippy::ignored_unit_patterns` lint violations in latest stable 1.75.0 --- src/st/set/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/st/set/mod.rs b/src/st/set/mod.rs index 62da0d38d32..b71ebbe032f 100644 --- a/src/st/set/mod.rs +++ b/src/st/set/mod.rs @@ -320,7 +320,7 @@ impl StHashSet { #[inline] #[must_use] pub fn get_nth(&self, n: usize) -> Option<&T> { - self.map.get_nth(n).map(|(elem, _)| elem) + self.map.get_nth(n).map(|(elem, ())| elem) } /// Insertion counter for the [first](StHashSet::first) element in the set. @@ -544,7 +544,7 @@ where #[inline] #[must_use] pub fn get(&self, element: &T) -> Option<&T> { - let (element, _) = self.map.get_key_value(element)?; + let (element, ()) = self.map.get_key_value(element)?; Some(element) } }