diff options
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/mod.rs | 2 | ||||
| -rw-r--r-- | src/utils/vec_map.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs index de75632..5b98b7b 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -329,7 +329,7 @@ pub fn parse_emoji(mention: &str) -> Option<EmojiIdentifier> { match id.parse::<u64>() { Ok(x) => Some(EmojiIdentifier { - name: name, + name, id: EmojiId(x), }), _ => None, 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<K: PartialEq, V> VecMap<K, V> { 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, }) } } |