Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Nov 2, 2023
1 parent a6145ee commit 11a7303
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
10 changes: 2 additions & 8 deletions xmtp_mls/src/api_client_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,7 @@ mod tests {
mock_api
.expect_query()
.withf(move |req| match req.paging_info.clone() {
Some(paging_info) => match paging_info.cursor {
Some(_) => false,
None => true,
},
Some(paging_info) => paging_info.cursor.is_none(),
None => true,
} && req.start_time_ns == 10)
.returning(move |req| {
Expand All @@ -590,10 +587,7 @@ mod tests {
mock_api
.expect_query()
.withf(|req| match req.paging_info.clone() {
Some(paging_info) => match paging_info.cursor {
Some(_) => true,
None => false,
},
Some(paging_info) => paging_info.cursor.is_some(),
None => false,
})
.returning(move |req| {
Expand Down
2 changes: 1 addition & 1 deletion xmtp_mls/src/builder.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::configuration::CIPHERSUITE;

use crate::storage::identity::StoredIdentity;
use crate::xmtp_openmls_provider::XmtpOpenMlsProvider;
use crate::{
Expand Down
2 changes: 1 addition & 1 deletion xmtp_mls/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,6 @@ mod tests {
// Ensure we got back different key packages
let key_package_2 = key_packages_2.first().unwrap();
assert_eq!(key_package_2.wallet_address, wallet_address);
assert!(!(key_package_2.eq(&key_package)));
assert!(!(key_package_2.eq(key_package)));
}
}
2 changes: 1 addition & 1 deletion xmtp_mls/src/storage/encrypted_store/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl_fetch_and_store!(StoredGroup, groups, Vec<u8>);
impl StoredGroup {
pub fn new(id: ID, created_at_ns: i64, membership_state: GroupMembershipState) -> Self {
Self {
id, created_at_ns, membership_state: membership_state
id, created_at_ns, membership_state
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion xmtp_mls/src/storage/encrypted_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ mod tests {
// Setup a persistent store
let store = EncryptedMessageStore::new(
StorageOption::Persistent(db_path.clone()),
enc_key.clone(),
enc_key,
)
.unwrap();

Expand Down

0 comments on commit 11a7303

Please sign in to comment.