Skip to content

Commit

Permalink
style(ffi/tests): format
Browse files Browse the repository at this point in the history
Had not previously formatted the code
  • Loading branch information
pratikpc authored May 20, 2024
1 parent 3ba6ebd commit c3bd108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ mod tests {
#[test]
fn ada_free_owned_string_works() {
let str = "meßagefactory.ca";
let result = unsafe {ffi::ada_idna_to_ascii(str.as_ptr().cast(), str.len())};
let result = unsafe { ffi::ada_idna_to_ascii(str.as_ptr().cast(), str.len()) };
assert_eq!(result.as_ref(), "xn--meagefactory-m9a.ca");
unsafe {ffi::ada_free_owned_string(result)};
unsafe { ffi::ada_free_owned_string(result) };
}
}

0 comments on commit c3bd108

Please sign in to comment.