From b30c89d0f0985c1c6c74e255b63b29ff370272fe Mon Sep 17 00:00:00 2001 From: Pratyush Mishra Date: Sat, 6 Jan 2024 19:24:03 -0500 Subject: [PATCH] Add patches and fix warning re: drop --- Cargo.toml | 8 ++++++++ relations/src/r1cs/constraint_system.rs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8a32f6b00..e7340958b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,8 @@ members = [ "snark", ] +resolver = "2" + [profile.release] opt-level = 3 lto = "thin" @@ -29,3 +31,9 @@ lto = "thin" incremental = true debug-assertions = true debug = true + +[patch.crates-io] +ark-ff = { git = "https://github.com/arkworks-rs/algebra/" } +ark-ec = { git = "https://github.com/arkworks-rs/algebra/" } +ark-poly = { git = "https://github.com/arkworks-rs/algebra/" } +ark-serialize = { git = "https://github.com/arkworks-rs/algebra/" } \ No newline at end of file diff --git a/relations/src/r1cs/constraint_system.rs b/relations/src/r1cs/constraint_system.rs index 02049934a..17b11756a 100644 --- a/relations/src/r1cs/constraint_system.rs +++ b/relations/src/r1cs/constraint_system.rs @@ -736,7 +736,7 @@ impl Drop for Namespace { if let Some(id) = self.id.as_ref() { tracing::dispatcher::get_default(|dispatch| dispatch.exit(id)) } - drop(&mut self.inner) + let _ = self.inner; } }