Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vivianjeng committed Jan 31, 2025
1 parent 3b6fce9 commit 1117d8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
@@ -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());
}

Expand Down Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit 1117d8f

Please sign in to comment.