Skip to content

Commit 6c6ba16

Browse files
committed
Relax indexmap PartialEq bounds even more.
1 parent f5e1ca7 commit 6c6ba16

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/indexmap.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,15 +1276,15 @@ where
12761276
}
12771277
}
12781278

1279-
impl<K, V, S, S2, const N: usize, const N2: usize> PartialEq<IndexMap<K, V, S2, N2>>
1280-
for IndexMap<K, V, S, N>
1279+
impl<K, V1, V2, S1, S2, const N1: usize, const N2: usize> PartialEq<IndexMap<K, V2, S2, N2>>
1280+
for IndexMap<K, V1, S1, N1>
12811281
where
12821282
K: Eq + Hash,
1283-
V: PartialEq,
1284-
S: BuildHasher,
1283+
V1: PartialEq<V2>,
1284+
S1: BuildHasher,
12851285
S2: BuildHasher,
12861286
{
1287-
fn eq(&self, other: &IndexMap<K, V, S2, N2>) -> bool {
1287+
fn eq(&self, other: &IndexMap<K, V2, S2, N2>) -> bool {
12881288
self.len() == other.len()
12891289
&& self
12901290
.iter()

0 commit comments

Comments
 (0)