Skip to content

Commit

Permalink
Cache iterator impl FusedIterator trait
Browse files Browse the repository at this point in the history
  • Loading branch information
selmeci committed May 28, 2020
1 parent 052b686 commit 60f6c05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/iter.rs
@@ -1,5 +1,6 @@
use crate::store::{Item, Store};
use indexmap::map::Keys;
use std::iter::FusedIterator;

pub struct Iter<'a, K, V, S>
where
Expand Down Expand Up @@ -38,6 +39,8 @@ where
}
}

impl<'a, K, V, S> FusedIterator for Iter<'a, K, V, S> where S: Store<K, V> {}

#[cfg(test)]
mod tests {
use crate::Cache;
Expand Down

0 comments on commit 60f6c05

Please sign in to comment.