From 12584fad939c668561f402ba64b7dc910a63e569 Mon Sep 17 00:00:00 2001 From: David Rusu Date: Tue, 23 Nov 2021 21:55:32 -0500 Subject: [PATCH 1/2] chore: switch to subtle-ng; bump stable version --- Cargo.toml | 2 +- rust-toolchain | 2 +- src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 174d292..10c1417 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ bitvec = { version = "0.22", default-features = false, optional = true } byteorder = { version = "1", default-features = false, optional = true } ff_derive = { version = "0.11", path = "ff_derive", optional = true } rand_core = { version = "0.6", default-features = false } -subtle = { version = "2.2.1", default-features = false, features = ["i128"] } +subtle = { package = "subtle-ng", version = "2.2", default-features = false, features = ["i128"] } [features] default = ["bits", "std"] diff --git a/rust-toolchain b/rust-toolchain index ba0a719..3ebf789 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.51.0 +1.56.0 diff --git a/src/lib.rs b/src/lib.rs index 57978aa..6f288d9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,7 +3,7 @@ // Catch documentation errors caused by code changes. #![no_std] #![cfg_attr(docsrs, feature(doc_cfg))] -#![deny(broken_intra_doc_links)] +#![deny(rustdoc::broken_intra_doc_links)] #![forbid(unsafe_code)] #[cfg(feature = "alloc")] From 485954e05b3c40fba5bdb6f8ea57be5eb8406763 Mon Sep 17 00:00:00 2001 From: David Rusu Date: Tue, 23 Nov 2021 21:56:03 -0500 Subject: [PATCH 2/2] chore: clippy --- src/batch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/batch.rs b/src/batch.rs index c479f9d..f1f7131 100644 --- a/src/batch.rs +++ b/src/batch.rs @@ -86,7 +86,7 @@ impl BatchInverter { let tmp = *scratch * acc; let skip = p.ct_eq(&F::zero()); acc = F::conditional_select(&(acc * *p), &acc, skip); - *p = F::conditional_select(&tmp, &p, skip); + *p = F::conditional_select(&tmp, p, skip); } allinv @@ -123,7 +123,7 @@ impl BatchInverter { let p = (element)(item); let skip = p.ct_eq(&F::zero()); acc = F::conditional_select(&(acc * *p), &acc, skip); - *p = F::conditional_select(&tmp, &p, skip); + *p = F::conditional_select(&tmp, p, skip); } allinv