diff --git a/Cargo.toml b/Cargo.toml index 42d2ad3..f69e7ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,24 +21,24 @@ edition = "2018" [dependencies] byteorder = "1.2.7" errno = "0.2.4" -failure = "0.1.3" -hex_fmt = "0.2.0" +failure = "0.1.5" +hex_fmt = "0.3.0" lazy_static = "1.1.0" -log = "0.4.5" +log = "0.4.6" memsec = "0.5.4" pairing = { version = "0.14.2", features = ["u128-support"] } -rand = "0.6.1" -rand04_compat = "0.1.0" -rand_chacha = "0.1.0" -serde = "1.0.80" -serde_derive = "1.0.80" +rand = "0.6.4" +rand04_compat = "0.1.1" +rand_chacha = "0.1.1" +serde = "1.0.84" +serde_derive = "1.0.84" tiny-keccak = "1.4.2" [dev-dependencies] bincode = "1.0.1" -criterion = "0.2.5" -serde_derive = "1.0.80" -rand_xorshift = "0.1.0" +criterion = "0.2.7" +serde_derive = "1.0.84" +rand_xorshift = "0.1.1" [[bench]] name = "bench" diff --git a/src/lib.rs b/src/lib.rs index 4955007..2f806a0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ )] #![warn(missing_docs)] -pub extern crate pairing; +pub use pairing; mod into_fr; mod secret; @@ -72,7 +72,7 @@ impl Hash for PublicKey { } impl fmt::Debug for PublicKey { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let uncomp = self.0.into_affine().into_uncompressed(); write!(f, "PublicKey({:0.10})", HexFmt(uncomp)) } @@ -133,7 +133,7 @@ impl PublicKey { pub struct PublicKeyShare(PublicKey); impl fmt::Debug for PublicKeyShare { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let uncomp = (self.0).0.into_affine().into_uncompressed(); write!(f, "PublicKeyShare({:0.10})", HexFmt(uncomp)) } @@ -182,7 +182,7 @@ impl Distribution for Standard { } impl fmt::Debug for Signature { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let uncomp = self.0.into_affine().into_uncompressed(); write!(f, "Signature({:0.10})", HexFmt(uncomp)) } @@ -233,7 +233,7 @@ impl Distribution for Standard { } impl fmt::Debug for SignatureShare { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let uncomp = (self.0).0.into_affine().into_uncompressed(); write!(f, "SignatureShare({:0.10})", HexFmt(uncomp)) } @@ -287,7 +287,7 @@ impl Drop for SecretKey { } /// A debug statement where the secret prime field element is redacted. impl fmt::Debug for SecretKey { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_tuple("SecretKey").field(&"...").finish() } } @@ -374,7 +374,7 @@ impl Distribution for Standard { } impl fmt::Debug for SecretKeyShare { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_tuple("SecretKeyShare").field(&"...").finish() } } diff --git a/src/poly.rs b/src/poly.rs index 2379dbc..6ced6c3 100644 --- a/src/poly.rs +++ b/src/poly.rs @@ -49,7 +49,7 @@ impl Clone for Poly { /// A debug statement where the `coeff` vector of prime field elements has been redacted. impl Debug for Poly { - fn fmt(&self, f: &mut Formatter) -> fmt::Result { + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { f.debug_struct("Poly").field("coeff", &"...").finish() } } @@ -530,7 +530,7 @@ impl Drop for BivarPoly { /// A debug statement where the `coeff` vector has been redacted. impl Debug for BivarPoly { - fn fmt(&self, f: &mut Formatter) -> fmt::Result { + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { f.debug_struct("BivarPoly") .field("degree", &self.degree) .field("coeff", &"...") diff --git a/src/serde_impl.rs b/src/serde_impl.rs index 4feaeaa..34fcc55 100644 --- a/src/serde_impl.rs +++ b/src/serde_impl.rs @@ -82,7 +82,7 @@ pub(crate) mod projective { impl<'de, C: CurveProjective> Visitor<'de> for TupleVisitor { type Value = C; - fn expecting(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let len = ::Compressed::size(); write!(f, "a tuple of size {}", len) }