Skip to content

Commit

Permalink
allow generic HashMap in lg2
Browse files Browse the repository at this point in the history
  • Loading branch information
ngtkana committed Aug 6, 2024
1 parent 0ce5766 commit 04c4212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/lg2/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub trait Map<'a>: 'a {
fn map_iter(self) -> Self::I;
}

impl<'a, K, V> Map<'a> for &'a HashMap<K, V> {
impl<'a, K, V, S> Map<'a> for &'a HashMap<K, V, S> {
type I = collections::hash_map::Iter<'a, K, V>;
type K = K;
type V = V;
Expand Down

0 comments on commit 04c4212

Please sign in to comment.