diff --git a/src/set.rs b/src/set.rs index fdff46d88..1fff1b9d4 100644 --- a/src/set.rs +++ b/src/set.rs @@ -2247,7 +2247,7 @@ impl<'a, T, S, A: Allocator> Entry<'a, T, S, A> { { match self { Entry::Occupied(entry) => entry, - Entry::Vacant(entry) => entry.insert_entry(), + Entry::Vacant(entry) => entry.insert(), } } @@ -2442,16 +2442,7 @@ impl<'a, T, S, A: Allocator> VacantEntry<'a, T, S, A> { /// assert!(set.contains("poneyland")); /// ``` #[cfg_attr(feature = "inline-more", inline)] - pub fn insert(self) - where - T: Hash, - S: BuildHasher, - { - self.inner.insert(()); - } - - #[cfg_attr(feature = "inline-more", inline)] - fn insert_entry(self) -> OccupiedEntry<'a, T, S, A> + pub fn insert(self) -> OccupiedEntry<'a, T, S, A> where T: Hash, S: BuildHasher,