From fdcf44e1463e708cd8b612c183e302db9af0febd Mon Sep 17 00:00:00 2001 From: Leah Date: Fri, 23 Mar 2018 13:54:12 +0100 Subject: Change the way ids and some enums are made (#295) This makes them easier to be found by tools like rls. Also update struct inits to use the shorthand version for `x: x`. --- src/utils/vec_map.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/vec_map.rs') diff --git a/src/utils/vec_map.rs b/src/utils/vec_map.rs index 786bf14..70e65f5 100644 --- a/src/utils/vec_map.rs +++ b/src/utils/vec_map.rs @@ -29,11 +29,11 @@ impl VecMap { match self.pos(&key) { Some(pos) => Entry::Occupied(OccupiedEntry { vec: &mut self.0, - pos: pos, + pos, }), None => Entry::Vacant(VacantEntry { vec: &mut self.0, - key: key, + key, }) } } -- cgit v1.2.3