Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brianp committed Apr 10, 2024
1 parent 5e1dc88 commit 58bb7d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion base_layer/chat_ffi/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ pub unsafe extern "C" fn chat_message_metadata_len(message: *mut Message, error_
error = LibChatError::from(InterfaceError::ConversionError(e.to_string())).code;
ptr::swap(error_out, &mut error as *mut c_int);
0
}
},
}
}

Expand Down
4 changes: 1 addition & 3 deletions base_layer/chat_ffi/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ use std::{convert::TryFrom, ptr};
use libc::{c_int, c_uint};
use tari_chat_client::ChatClient as ChatClientTrait;
use tari_common_types::tari_address::TariAddress;
use tari_contacts::contacts_service::{
types::Message,
};
use tari_contacts::contacts_service::types::Message;

use crate::{
error::{InterfaceError, LibChatError},
Expand Down

0 comments on commit 58bb7d8

Please sign in to comment.