Browse Source

Auto merge of #74 - plutomonkey:clippy, r=ebfull

Update clippy and fix code indentation.

(The code indentation issue was not caught by clippy -- I noticed it by chance!)
master
bmerge 7 years ago
parent
commit
7b6e13bcb9
  1. 2
      Cargo.toml
  2. 2
      src/bls12_381/fr.rs
  3. 1
      src/lib.rs

2
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"]

2
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();

1
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

Loading…
Cancel
Save