diff --git a/Cargo.toml b/Cargo.toml index 878c9cd0..1c6718c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ readme = "README.md" repository = "https://github.com/lurk-lab/arecibo" license-file = "LICENSE" keywords = ["zkSNARKs", "cryptography", "proofs"] -rust-version="1.74.1" +rust-version="1.79" [dependencies] bellpepper-core = { version = "0.4.0", default-features = false } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e4205e80..5d7f8702 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,6 +1,6 @@ [toolchain] # The default profile includes rustc, rust-std, cargo, rust-docs, rustfmt and clippy. profile = "default" -channel = "1.78" +channel = "1.79" targets = [ "wasm32-unknown-unknown" ] diff --git a/src/gadgets/nonnative/util.rs b/src/gadgets/nonnative/util.rs index c63108f0..e29288ff 100644 --- a/src/gadgets/nonnative/util.rs +++ b/src/gadgets/nonnative/util.rs @@ -14,6 +14,7 @@ use std::io::{self, Write}; pub struct Bit { /// The linear combination which constrain the value of the bit pub bit: LinearCombination, + #[allow(unused)] /// The value of the bit (filled at witness-time) pub value: Option, } diff --git a/src/gadgets/utils.rs b/src/gadgets/utils.rs index fcae1350..84cdbf44 100644 --- a/src/gadgets/utils.rs +++ b/src/gadgets/utils.rs @@ -74,8 +74,7 @@ pub fn alloc_scalar_as_base( input: Option, ) -> Result, SynthesisError> where - E: Engine, - ::Scalar: PrimeFieldBits, + E: Engine, CS: ConstraintSystem<::Base>, { AllocatedNum::alloc(cs.namespace(|| "allocate scalar as base"), || {