Skip to content

Commit

Permalink
Use next to get the first element in the cache.
Browse files Browse the repository at this point in the history
Signed-off-by: David Calavera <[email protected]>
  • Loading branch information
calavera authored and S-Coyle committed Mar 20, 2020
1 parent b7f1fd8 commit 9fdd337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ mod test {
.map
.values()
.map(|(_, updated_at)| updated_at)
.nth(0)
.next()
.unwrap();

let _ = lru_cache.peek_iter().collect::<Vec<_>>();
Expand All @@ -886,7 +886,7 @@ mod test {
.map
.values()
.map(|(_, updated_at)| updated_at)
.nth(0)
.next()
.unwrap();
assert_eq!(real_time, expected_time);
}
Expand Down

0 comments on commit 9fdd337

Please sign in to comment.