about summary refs log tree commit diff
path: root/tvix/store/src/directoryservice/from_addr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/store/src/directoryservice/from_addr.rs')
-rw-r--r--tvix/store/src/directoryservice/from_addr.rs5
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)?)