bls: fix unused import warning

This commit is contained in:
Michael Sproul 2019-06-12 16:56:57 +10:00
parent 0da63a0e65
commit 4686542e10
No known key found for this signature in database
GPG Key ID: 77B1309D2E54E914

View File

@ -1,6 +1,5 @@
use super::PublicKey; use super::PublicKey;
use milagro_bls::AggregatePublicKey as RawAggregatePublicKey; use milagro_bls::AggregatePublicKey as RawAggregatePublicKey;
use serde_hex::encode as hex_encode;
/// A BLS aggregate public key. /// A BLS aggregate public key.
/// ///
@ -26,6 +25,6 @@ impl AggregatePublicKey {
/// Return a hex string representation of this key's bytes. /// Return a hex string representation of this key's bytes.
#[cfg(test)] #[cfg(test)]
pub fn as_hex_string(&self) -> String { pub fn as_hex_string(&self) -> String {
hex_encode(self.as_raw().as_bytes()) serde_hex::encode(self.as_raw().as_bytes())
} }
} }