Update clippy and compensate for new lints.
This commit is contained in:
@@ -14,7 +14,7 @@ repository = "https://github.com/ebfull/pairing"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
rand = "0.3"
|
rand = "0.3"
|
||||||
byteorder = "1.1.0"
|
byteorder = "1.1.0"
|
||||||
clippy = { version = "0.0.151", optional = true }
|
clippy = { version = "0.0.165", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
unstable-features = []
|
unstable-features = []
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
#![cfg_attr(feature = "clippy", allow(too_many_arguments))]
|
#![cfg_attr(feature = "clippy", allow(too_many_arguments))]
|
||||||
#![cfg_attr(feature = "clippy", allow(unreadable_literal))]
|
#![cfg_attr(feature = "clippy", allow(unreadable_literal))]
|
||||||
#![cfg_attr(feature = "clippy", allow(new_without_default_derive))]
|
#![cfg_attr(feature = "clippy", allow(new_without_default_derive))]
|
||||||
|
#![cfg_attr(feature = "clippy", allow(expl_impl_clone_on_copy))] // TODO
|
||||||
|
|
||||||
// Force public structures to implement Debug
|
// Force public structures to implement Debug
|
||||||
#![deny(missing_debug_implementations)]
|
#![deny(missing_debug_implementations)]
|
||||||
@@ -519,7 +520,7 @@ pub trait PrimeField: Field
|
|||||||
}
|
}
|
||||||
|
|
||||||
res.mul_assign(&ten);
|
res.mul_assign(&ten);
|
||||||
res.add_assign(&Self::from_repr(Self::Repr::from(c as u64)).unwrap());
|
res.add_assign(&Self::from_repr(Self::Repr::from(u64::from(c))).unwrap());
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
return None;
|
return None;
|
||||||
|
|||||||
Reference in New Issue
Block a user