mirror of https://github.com/zcash/halo2.git
Take `self` directly in to_bytes methods where Self: Copy
This commit is contained in:
parent
cdfd2ab0f9
commit
7f47949b09
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue