From de091453093fb5139de71b085411d2fad1a52275 Mon Sep 17 00:00:00 2001 From: Robert Straw Date: Mon, 22 Dec 2014 09:33:25 -0600 Subject: [PATCH] Use namespaced enum variants for the map-entry slots. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3d47f0d..24c4620 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -188,8 +188,8 @@ impl AnyMap { /// Gets the given key's corresponding entry in the map for in-place manipulation pub fn entry(&mut self) -> Entry { match self.data.entry(TypeId::of::()) { - hash_map::Occupied(e) => Occupied(OccupiedEntry { entry: e }), - hash_map::Vacant(e) => Vacant(VacantEntry { entry: e }), + hash_map::Entry::Occupied(e) => Occupied(OccupiedEntry { entry: e }), + hash_map::Entry::Vacant(e) => Vacant(VacantEntry { entry: e }), } } -- 2.42.0