Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-a16z committed Oct 21, 2024
1 parent f29cf74 commit 32ae2d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/build_wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ fn preprocess_and_save(func_name: &str, attributes: &Attributes, is_std: bool) -

fn extract_provable_functions() -> Vec<FunctionAttributes> {
let guest_path = Path::new("guest/src/lib.rs");
let content = fs::read_to_string(guest_path).expect(&format!("Unable to read file: {:?}", guest_path));
let syntax: syn::File = syn::parse_file(&content).expect(&format!("Unable to parse file: {:?}", guest_path));
let content = fs::read_to_string(guest_path)
.unwrap_or_else(|_| panic!("Unable to read file: {:?}", guest_path));
let syntax: syn::File = syn::parse_file(&content)
.unwrap_or_else(|_| panic!("Unable to parse file: {:?}", guest_path));

syntax
.items
Expand Down

0 comments on commit 32ae2d0

Please sign in to comment.