Skip to content

Commit 147d8df

Browse files
carllerchereem
authored andcommitted
Default S to RandomState for Entries
1 parent dc53da9 commit 147d8df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ pub struct IterMut<'a, K: 'a, V: 'a> {
824824

825825
/// An insertion-order iterator over a `LinkedHashMap`'s entries represented as
826826
/// an `OccupiedEntry`.
827-
pub struct Entries<'a, K: 'a, V: 'a, S: 'a> {
827+
pub struct Entries<'a, K: 'a, V: 'a, S: 'a = hash_map::RandomState> {
828828
map: *mut LinkedHashMap<K, V, S>,
829829
head: *mut LinkedHashMapEntry<K, V>,
830830
tail: *mut LinkedHashMapEntry<K, V>,

0 commit comments

Comments
 (0)