Update PublicKey AsRef to slice
This commit is contained in:
parent
7ff721e563
commit
e9499ac5b8
|
@ -26,9 +26,9 @@ impl PublicKey {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AsRef<GenericArray<u8, U32>> for PublicKey {
|
impl AsRef<[u8]> for PublicKey {
|
||||||
fn as_ref(&self) -> &GenericArray<u8, U32> {
|
fn as_ref(&self) -> &[u8] {
|
||||||
&self.0
|
&self.0[..]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue