Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed May 24, 2021
1 parent bdd605b commit 40bee47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wasm/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn panic_handler(info: &core::panic::PanicInfo) -> ! {
let ptr = msg.as_mut_ptr();
let len = msg.len();
unsafe { panic(ptr, len) };

loop {}
}

Expand Down Expand Up @@ -81,7 +81,8 @@ pub unsafe fn hash_raw(
_ => Version::V0x13,
};

let argon2 = Argon2::new(secret, time_cost, memory_cost, lanes, version).unwrap();
let argon2 =
Argon2::new(secret, time_cost, memory_cost, lanes, version).unwrap();
let out_ptr = alloc(out_len);
let out = core::slice::from_raw_parts_mut(out_ptr, out_len);

Expand Down

0 comments on commit 40bee47

Please sign in to comment.