From 0f64db171ada1c4142f9c710042d26265be20fd0 Mon Sep 17 00:00:00 2001 From: Miraculous Owonubi Date: Wed, 26 Jun 2024 21:26:51 +0300 Subject: [PATCH] support Eq on Slice --- crates/store/src/slice.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/store/src/slice.rs b/crates/store/src/slice.rs index 6e11df84b..022662391 100644 --- a/crates/store/src/slice.rs +++ b/crates/store/src/slice.rs @@ -141,6 +141,7 @@ impl<'a> From> 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()