diff options
author | Florian Klink <flokli@flokli.de> | 2023-06-17T10·20+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-06-19T14·29+0000 |
commit | b10f008b03f44192cb37cbd6cf1e55b6d03b80fa (patch) | |
tree | a9e767f9a2fd567126f694a13a679e55a661fe12 /tvix/store/src/directoryservice/from_addr.rs | |
parent | 71093a513a37ee72dc7cbd55af0745e68e9ca265 (diff) |
chore(tvix/store/directorysvc): clippy r/6332
Change-Id: Idf45aaa0f6211ac35a9a41d0f3f60dfbe1009398 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8811 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/store/src/directoryservice/from_addr.rs')
-rw-r--r-- | tvix/store/src/directoryservice/from_addr.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tvix/store/src/directoryservice/from_addr.rs b/tvix/store/src/directoryservice/from_addr.rs index a3e2521e98e0..776cf061096c 100644 --- a/tvix/store/src/directoryservice/from_addr.rs +++ b/tvix/store/src/directoryservice/from_addr.rs @@ -18,9 +18,8 @@ use super::{DirectoryService, GRPCDirectoryService, MemoryDirectoryService, Sled /// - `grpc+http://host:port`, `grpc+https://host:port` /// Connects to a (remote) tvix-store gRPC service. pub fn from_addr(uri: &str) -> Result<Arc<dyn DirectoryService>, crate::Error> { - let url = Url::parse(uri).map_err(|e| { - crate::Error::StorageError(format!("unable to parse url: {}", e.to_string())) - })?; + let url = Url::parse(uri) + .map_err(|e| crate::Error::StorageError(format!("unable to parse url: {}", e)))?; Ok(if url.scheme() == "memory" { Arc::new(MemoryDirectoryService::from_url(&url)?) |