about summary refs log tree commit diff
path: root/tvix/castore
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-12T17·32+0200
committerflokli <flokli@flokli.de>2023-10-12T20·46+0000
commit04c1f151f381122cd4a800ba52ebcbc6bc70acf2 (patch)
treea05cb9c27fd7838b1416ada01a1d64b2abb811c9 /tvix/castore
parenta9e5a7cec90bd79241cf5f0d5df136b6dc2d31bd (diff)
refactor(tvix/castore/utils): clippy r/6790
Change-Id: Ib0fa1e1fb90d7f315f943a3f28266c0fb3714a31
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9708
Tested-by: BuildkiteCI
Reviewed-by: edef <edef@edef.eu>
Diffstat (limited to 'tvix/castore')
-rw-r--r--tvix/castore/src/utils.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/tvix/castore/src/utils.rs b/tvix/castore/src/utils.rs
index d9a967598841..ad0051ff9732 100644
--- a/tvix/castore/src/utils.rs
+++ b/tvix/castore/src/utils.rs
@@ -57,7 +57,7 @@ pub(crate) async fn gen_directorysvc_grpc_client() -> DirectoryServiceClient<Cha
 
     // Create a client, connecting to the right side. The URI is unused.
     let mut maybe_right = Some(right);
-    let grpc_client = DirectoryServiceClient::new(
+    DirectoryServiceClient::new(
         Endpoint::try_from("http://[::]:50051")
             .unwrap()
             .connect_with_connector(tower::service_fn(move |_: Uri| {
@@ -66,9 +66,7 @@ pub(crate) async fn gen_directorysvc_grpc_client() -> DirectoryServiceClient<Cha
             }))
             .await
             .unwrap(),
-    );
-
-    grpc_client
+    )
 }
 
 /// This will spawn the a gRPC server with a BlobService client, connect a
@@ -92,7 +90,7 @@ pub(crate) async fn gen_blobsvc_grpc_client() -> BlobServiceClient<Channel> {
 
     // Create a client, connecting to the right side. The URI is unused.
     let mut maybe_right = Some(right);
-    let grpc_client = BlobServiceClient::new(
+    BlobServiceClient::new(
         Endpoint::try_from("http://[::]:50051")
             .unwrap()
             .connect_with_connector(tower::service_fn(move |_: Uri| {
@@ -101,7 +99,5 @@ pub(crate) async fn gen_blobsvc_grpc_client() -> BlobServiceClient<Channel> {
             }))
             .await
             .unwrap(),
-    );
-
-    grpc_client
+    )
 }