Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
fix: clippy and fmt complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
kobyhallx committed Aug 1, 2023
1 parent ccb5da0 commit 1d226b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acvm_js/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ fn main() -> Result<(), String> {
Ok(())
} else {
let current_dir = std::env::current_dir().unwrap();
let bin_path = current_dir.join("result").join("bin");
let bin_path = current_dir.join("result").join("bin");
let wasm_path = bin_path.join(BB_WASM);
let bin_path_string = bin_path.to_string_lossy();
if wasm_path.exists() && wasm_path.is_file() {
println!("cargo:warning=BARRETENBERG_BIN_DIR env not set, setting BARRETENBERG_BIN_DIR={bin_path_string}");
println!("cargo:rustc-env={BARRETENBERG_BIN_DIR}={bin_path_string}");
Ok(())
} else {
Err(format!("Unable to locate barretenberg.wasm - Please set the BARRETENBERG_BIN_DIR env var to the directory where it exists, or ensure it's located at {bin_path_string}", ).into())
Err(format!("Unable to locate barretenberg.wasm - Please set the BARRETENBERG_BIN_DIR env var to the directory where it exists, or ensure it's located at {bin_path_string}", ))
}
}
}
Expand Down

0 comments on commit 1d226b2

Please sign in to comment.