Use namespaced enum variants for the map-entry slots.
authorRobert Straw <drbawb@fatalsyntax.com>
committerRobert Straw <drbawb@fatalsyntax.com>
src/lib.rs

index 3d47f0d45ce6c83d70beed766f7ac8f0ef204bd5..24c4620334df6a9b31235e427ca23d9bf6ec5122 100644 (file)
@@ -188,8 +188,8 @@ impl AnyMap {
     /// Gets the given key's corresponding entry in the map for in-place manipulation
     pub fn entry<T: Any + 'static>(&mut self) -> Entry<T> {
         match self.data.entry(TypeId::of::<T>()) {
-            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 }),
         }
     }