Cargo fix update. Also update dependencies, minus lazy static due to issues with criterion.

This commit is contained in:
David Irvine 2019-01-09 00:11:38 +00:00 committed by Andreas Fackler
parent dbb9fae896
commit 43f615c953
4 changed files with 21 additions and 21 deletions

View File

@ -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"

View File

@ -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<Signature> 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<SignatureShare> 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<SecretKeyShare> 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()
}
}

View File

@ -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", &"...")

View File

@ -82,7 +82,7 @@ pub(crate) mod projective {
impl<'de, C: CurveProjective> Visitor<'de> for TupleVisitor<C> {
type Value = C;
fn expecting(&self, f: &mut fmt::Formatter) -> fmt::Result {
fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let len = <C::Affine as CurveAffine>::Compressed::size();
write!(f, "a tuple of size {}", len)
}