diff --git a/src/keys.rs b/src/keys.rs index e0029478..bcf3c1ef 100644 --- a/src/keys.rs +++ b/src/keys.rs @@ -421,7 +421,7 @@ impl DiversifiedTransmissionKey { } /// $repr_P(self)$ - pub(crate) fn to_bytes(&self) -> [u8; 32] { + pub(crate) fn to_bytes(self) -> [u8; 32] { self.0.to_bytes() } } diff --git a/src/note/nullifier.rs b/src/note/nullifier.rs index 2ae51c94..2f87148d 100644 --- a/src/note/nullifier.rs +++ b/src/note/nullifier.rs @@ -37,7 +37,7 @@ impl Nullifier { } /// Serialize the nullifier to its canonical byte representation. - pub fn to_bytes(&self) -> [u8; 32] { + pub fn to_bytes(self) -> [u8; 32] { self.0.to_bytes() }