Skip to content

Commit

Permalink
Fix some 'cargo fix' warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ozkriff committed Dec 8, 2018
1 parent 1a7f230 commit 41fb1c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zcomponents/src/lib.rs
Expand Up @@ -145,7 +145,7 @@ impl<Id: Hash + Eq + Copy + Debug, V: Clone> ComponentContainer<Id, V> {
self.data.remove(&id);
}

pub fn ids(&self) -> IdIter<Id, V> {
pub fn ids(&self) -> IdIter<'_, Id, V> {
IdIter::new(&self.data)
}

Expand All @@ -156,7 +156,7 @@ impl<Id: Hash + Eq + Copy + Debug, V: Clone> ComponentContainer<Id, V> {
}

#[derive(Clone, Debug)]
pub struct IdIter<'a, Id: 'a, V: 'a> {
pub struct IdIter<'a, Id, V> {
iter: hash_map::Iter<'a, Id, V>,
}

Expand Down

0 comments on commit 41fb1c9

Please sign in to comment.