diff --git a/src/lib.rs b/src/lib.rs index 52ca1a5d8..b71dc4f24 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -336,7 +336,7 @@ impl PartialEq<[u8; OUT_LEN]> for Hash { // When testing with Miri, this is _not_ constant time due to library limitations. // This should _only_ be done for testing! #[cfg(miri)] - return self.0 == other; + return self.0 == *other; #[cfg(not(miri))] constant_time_eq::constant_time_eq_32(&self.0, other) @@ -350,7 +350,7 @@ impl PartialEq<[u8]> for Hash { // When testing with Miri, this is _not_ constant time due to library limitations. // This should _only_ be done for testing! #[cfg(miri)] - return self.0 == other; + return self.0 == *other; #[cfg(not(miri))] constant_time_eq::constant_time_eq(&self.0, other)