From ebde379a456beacc24f12c837a2c1d31dacfc0b3 Mon Sep 17 00:00:00 2001 From: Martin Kysel Date: Thu, 7 Nov 2024 13:46:50 -0500 Subject: [PATCH] clippy --- xmtp_api_grpc/src/replication_client.rs | 2 +- xmtp_proto/src/convert.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/xmtp_api_grpc/src/replication_client.rs b/xmtp_api_grpc/src/replication_client.rs index f6ed2483e..1f5a09cca 100644 --- a/xmtp_api_grpc/src/replication_client.rs +++ b/xmtp_api_grpc/src/replication_client.rs @@ -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 } } diff --git a/xmtp_proto/src/convert.rs b/xmtp_proto/src/convert.rs index f654fe36c..c8f9dd03f 100644 --- a/xmtp_proto/src/convert.rs +++ b/xmtp_proto/src/convert.rs @@ -50,7 +50,7 @@ impl From 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)), }], @@ -74,9 +74,7 @@ impl From for PublishClientEnvelopesRequest { impl From 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 {