From 04c1f151f381122cd4a800ba52ebcbc6bc70acf2 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 12 Oct 2023 19:32:32 +0200 Subject: refactor(tvix/castore/utils): clippy Change-Id: Ib0fa1e1fb90d7f315f943a3f28266c0fb3714a31 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9708 Tested-by: BuildkiteCI Reviewed-by: edef --- tvix/castore/src/utils.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'tvix/castore/src') diff --git a/tvix/castore/src/utils.rs b/tvix/castore/src/utils.rs index d9a9675988..ad0051ff97 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 DirectoryServiceClient BlobServiceClient { // 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 { })) .await .unwrap(), - ); - - grpc_client + ) } -- cgit 1.4.1