From 1117d8f07feab84171ca2d5329891eede6eee284 Mon Sep 17 00:00:00 2001 From: "Ya-wen, Jeng" Date: Fri, 31 Jan 2025 14:17:58 +0800 Subject: [PATCH] chore: lint --- build.rs | 9 ++++++--- src/lib.rs | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/build.rs b/build.rs index 4b634f9..f5ffff3 100644 --- a/build.rs +++ b/build.rs @@ -1,7 +1,10 @@ -use std::{env, fs, path::{Path, PathBuf}}; +use std::env; +use std::fs; +use std::path::Path; +use std::path::PathBuf; fn main() { - if let Ok(_) = std::env::var("RUST_WITNESS_LINK_TEST_WITNESS") { + if std::env::var("RUST_WITNESS_LINK_TEST_WITNESS").is_ok() { rust_witness::transpile::transpile_wasm("./test-vectors".to_string()); } @@ -58,7 +61,7 @@ fn android() { "Error: Source file {:?} does not exist", lib_path ); - let dest_dir = Path::new(&output_path).join(&env::var("CARGO_NDK_ANDROID_TARGET").unwrap()); + let dest_dir = Path::new(&output_path).join(env::var("CARGO_NDK_ANDROID_TARGET").unwrap()); println!("cargo:rerun-if-changed={}", dest_dir.display()); if !dest_dir.exists() { fs::create_dir_all(&dest_dir).unwrap(); diff --git a/src/lib.rs b/src/lib.rs index 2fec9a9..9d6e0c7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,9 @@ use num_bigint::BigInt; pub type WtnsFn = fn(HashMap>) -> Vec; pub struct ProofResult { + #[allow(unused)] // TODO: Remove this once we have a proper way to handle this proof: String, + #[allow(unused)] // TODO: Remove this once we have a proper way to handle this public_signals: String, }