Skip to content

Commit 276ca07

Browse files
committed
fixup! Remove global API endpoint
1 parent 0045246 commit 276ca07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mullvad-api/src/ffi/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ mod test {
476476
fn create_client(addr: &SocketAddr) -> MullvadApiClient {
477477
let mut client = MaybeUninit::<MullvadApiClient>::uninit();
478478
let cstr_address = CString::new(addr.to_string()).unwrap();
479-
let _client = unsafe {
479+
unsafe {
480480
mullvad_api_client_initialize(
481481
client.as_mut_ptr(),
482482
cstr_address.as_ptr().cast(),
@@ -494,7 +494,7 @@ mod test {
494494
let client = create_client(&server.socket_address());
495495

496496
let mut account_buf = vec![0 as libc::c_char; 100];
497-
unsafe { mullvad_api_create_account(client, (&account_buf.as_mut_ptr()).cast()).unwrap() };
497+
unsafe { mullvad_api_create_account(client, account_buf.as_mut_ptr().cast()).unwrap() };
498498
}
499499

500500
fn test_server() -> ServerGuard {

0 commit comments

Comments
 (0)