Skip to content

Commit

Permalink
Refactor extern "C" functions in lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Aug 6, 2024
1 parent 60d6ae8 commit fef7c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starknet/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub extern "C" fn compileSierraToCasm(sierra_json: *const c_char) -> *mut c_char
if let Err(e) = casm_json {
return raw_cstr(e.to_string());
}
return raw_cstr(casm_json.unwrap());
raw_cstr(casm_json.unwrap())
}

fn raw_cstr(str: String) -> *mut c_char {
Expand Down

0 comments on commit fef7c84

Please sign in to comment.