Skip to content

Commit

Permalink
fix: fix PartialEq for FrozenVec
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 19, 2023
1 parent 0301948 commit 410b6d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ impl<'a, T: StableDeref> IntoIterator for &'a FrozenVec<T> {
}
}

impl<T: StableDeref> PartialEq for FrozenVec<T>
impl<T: StableDeref + PartialEq> PartialEq for FrozenVec<T>
where
T::Target: PartialEq,
{
fn eq(&self, other: &Self) -> bool {
self.vec.get() == other.vec.get()
unsafe { self.vec.get().as_ref() == other.vec.get().as_ref() }
}
}

Expand Down

0 comments on commit 410b6d6

Please sign in to comment.