chore: lint

This commit is contained in:
Ya-wen, Jeng 2025-01-31 14:17:58 +08:00
parent 3b6fce9472
commit 1117d8f07f
2 changed files with 8 additions and 3 deletions

View File

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

View File

@ -6,7 +6,9 @@ use num_bigint::BigInt;
pub type WtnsFn = fn(HashMap<String, Vec<BigInt>>) -> Vec<BigInt>;
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,
}