Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mkysel committed Nov 7, 2024
1 parent 58ff511 commit ebde379
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion xmtp_api_grpc/src/replication_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ impl ClientV4 {
Ok(v4_envelopes.into_inner().envelopes)
});

Ok(futures::future::try_join_all(requests).await?)
futures::future::try_join_all(requests).await
}
}

Expand Down
6 changes: 2 additions & 4 deletions xmtp_proto/src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl From<UploadKeyPackageRequest> for PublishClientEnvelopesRequest {
PublishClientEnvelopesRequest {
envelopes: vec![ClientEnvelope {
aad: Some(AuthenticatedData::with_topic(get_key_package_topic(
&req.key_package.as_ref().unwrap(),
req.key_package.as_ref().unwrap(),
))),
payload: Some(Payload::UploadKeyPackage(req)),
}],
Expand All @@ -74,9 +74,7 @@ impl From<PublishIdentityUpdateRequest> for PublishClientEnvelopesRequest {

impl From<GroupMessageInput> for PublishClientEnvelopesRequest {
fn from(req: GroupMessageInput) -> Self {
let version = match req.version.as_ref().unwrap() {
GroupMessageInputVersion::V1(v1) => v1,
};
let GroupMessageInputVersion::V1(version) = req.version.as_ref().unwrap();

PublishClientEnvelopesRequest {
envelopes: vec![ClientEnvelope {
Expand Down

0 comments on commit ebde379

Please sign in to comment.