diff --git a/Cargo.toml b/Cargo.toml index 80d0b05c1..bfd572330 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ repository = "https://github.com/ebfull/pairing" [dependencies] rand = "0.3" byteorder = "1" -clippy = { version = "0.0.174", optional = true } +clippy = { version = "0.0.186", optional = true } [features] unstable-features = ["expose-arith"] diff --git a/src/bls12_381/fr.rs b/src/bls12_381/fr.rs index 96ef59908..90961de20 100644 --- a/src/bls12_381/fr.rs +++ b/src/bls12_381/fr.rs @@ -573,7 +573,7 @@ impl SqrtField for Fr { let mut m = S; while t != Self::one() { - let mut i = 1; + let mut i = 1; { let mut t2i = t; t2i.square(); diff --git a/src/lib.rs b/src/lib.rs index b61fbc77b..c165a742a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,6 +11,7 @@ #![cfg_attr(feature = "clippy", allow(inline_always))] #![cfg_attr(feature = "clippy", allow(too_many_arguments))] #![cfg_attr(feature = "clippy", allow(unreadable_literal))] +#![cfg_attr(feature = "clippy", allow(many_single_char_names))] #![cfg_attr(feature = "clippy", allow(new_without_default_derive))] // Force public structures to implement Debug