From: Robert Straw Date: Mon, 22 Dec 2014 15:33:25 +0000 (-0600) Subject: Use namespaced enum variants for the map-entry slots. X-Git-Tag: 0.9.4~1^2~1 X-Git-Url: https://git.chrismorgan.info/anymap/commitdiff_plain/de091453093fb5139de71b085411d2fad1a52275 Use namespaced enum variants for the map-entry slots. --- 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 }), } }