diff --git a/mod.rs b/mod.rs index 2827de0..cdab4c3 100644 --- a/mod.rs +++ b/mod.rs @@ -175,9 +175,10 @@ impl PartialEq for Ciphertext { impl Hash for Ciphertext { fn hash(&self, state: &mut H) { - self.0.into_affine().into_compressed().as_ref().hash(state); - self.1.hash(state); - self.2.into_affine().into_compressed().as_ref().hash(state); + let Ciphertext(ref u, ref v, ref w) = *self; + u.into_affine().into_compressed().as_ref().hash(state); + v.hash(state); + w.into_affine().into_compressed().as_ref().hash(state); } }