File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ mod test {
476
476
fn create_client ( addr : & SocketAddr ) -> MullvadApiClient {
477
477
let mut client = MaybeUninit :: < MullvadApiClient > :: uninit ( ) ;
478
478
let cstr_address = CString :: new ( addr. to_string ( ) ) . unwrap ( ) ;
479
- let _client = unsafe {
479
+ unsafe {
480
480
mullvad_api_client_initialize (
481
481
client. as_mut_ptr ( ) ,
482
482
cstr_address. as_ptr ( ) . cast ( ) ,
@@ -494,7 +494,7 @@ mod test {
494
494
let client = create_client ( & server. socket_address ( ) ) ;
495
495
496
496
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 ( ) } ;
498
498
}
499
499
500
500
fn test_server ( ) -> ServerGuard {
You can’t perform that action at this time.
0 commit comments