Skip to content

Commit

Permalink
support Eq on Slice
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed Jun 26, 2024
1 parent 4fcf603 commit 0f64db1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/store/src/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ impl<'a> From<Slice<'a>> for Box<[u8]> {
}
}

impl<'a> Eq for Slice<'a> {}
impl<'a> PartialEq for Slice<'a> {
fn eq(&self, other: &Self) -> bool {
self.as_ref() == other.as_ref()
Expand Down

0 comments on commit 0f64db1

Please sign in to comment.