Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhuaaa committed Nov 29, 2023
1 parent 862ffd3 commit 2fb98a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions xmtp/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[allow(clippy::module_inception)]
#[cfg(test)]
pub mod test_utils {
use xmtp_proto::api_client::XmtpApiClient;
Expand Down
2 changes: 1 addition & 1 deletion xmtp_mls/src/codecs/membership_change.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ mod tests {
encoded.clone().r#type.unwrap().type_id,
"group_membership_change"
);
assert!(encoded.content.len() > 0);
assert!(!encoded.content.is_empty());

let decoded = GroupMembershipChangeCodec::decode(encoded).unwrap();
assert_eq!(decoded.members_added[0], new_member);
Expand Down
5 changes: 1 addition & 4 deletions xmtp_mls/src/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,7 @@ mod tests {

impl RetryableError for SomeError {
fn is_retryable(&self) -> bool {
match self {
Self::ARetryableError => true,
_ => false,
}
matches!(self, Self::ARetryableError)
}
}

Expand Down
2 changes: 1 addition & 1 deletion xmtp_mls/src/storage/encrypted_store/group_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ mod tests {
);
msg.store(conn).unwrap();
}
2 | _ => {
_ => {
let msg = generate_message(
Some(GroupMessageKind::MemberAdded),
Some(&group.id),
Expand Down

0 comments on commit 2fb98a3

Please sign in to comment.