Update PublicKey AsRef to slice

This commit is contained in:
Tyera Eulberg 2018-08-01 11:13:04 -06:00 committed by Grimes
parent 7ff721e563
commit e9499ac5b8
1 changed files with 3 additions and 3 deletions

View File

@ -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[..]
} }
} }