Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jul 22, 2024
1 parent 8527536 commit fd2e812
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions base_layer/wallet_ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7100,7 +7100,6 @@ pub unsafe extern "C" fn wallet_send_transaction(
ptr::swap(error_out, &mut error as *mut c_int);
return 0;
}

if destination.is_null() {
error = LibWalletError::from(InterfaceError::NullError("dest_public_key".to_string())).code;
ptr::swap(error_out, &mut error as *mut c_int);
Expand All @@ -7121,8 +7120,6 @@ pub unsafe extern "C" fn wallet_send_transaction(

let message_string;
if message.is_null() {
error = LibWalletError::from(InterfaceError::NullError("message".to_string())).code;
ptr::swap(error_out, &mut error as *mut c_int);
message_string = CString::new("")
.expect("Blank CString will not fail")
.to_str()
Expand Down

0 comments on commit fd2e812

Please sign in to comment.