Skip to content

Commit

Permalink
chore: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Sep 27, 2023
1 parent e14d2a3 commit 6147b3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/wasm/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ pub fn compile(args: JsValue) -> JsValue {

cfg_if::cfg_if! {
if #[cfg(all(target_arch = "wasm32", not(target_os = "wasi")))] {
use wasm_bindgen::{prelude::*, JsValue};

#[wasm_bindgen(module = "@noir-lang/source-resolver")]
extern "C" {
Expand All @@ -150,6 +149,8 @@ cfg_if::cfg_if! {
}

fn get_non_stdlib_asset(path_to_file: &Path) -> std::io::Result<String> {
use std::io::{Error, ErrorKind};

let path_str = path_to_file.to_str().unwrap();
match read_file(path_str) {
Ok(buffer) => Ok(buffer),
Expand Down

0 comments on commit 6147b3e

Please sign in to comment.