about summary refs log tree commit diff
path: root/tvix/store/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/store/src/tests')
-rw-r--r--tvix/store/src/tests/utils.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/tvix/store/src/tests/utils.rs b/tvix/store/src/tests/utils.rs
index 961be6e7ac07..040b7ee7f51f 100644
--- a/tvix/store/src/tests/utils.rs
+++ b/tvix/store/src/tests/utils.rs
@@ -4,9 +4,13 @@ use tvix_castore::{blobservice::BlobService, directoryservice::DirectoryService}
 
 pub use tvix_castore::utils::*;
 
-pub fn gen_pathinfo_service(
-    blob_service: Arc<dyn BlobService>,
-    directory_service: Arc<dyn DirectoryService>,
-) -> Arc<dyn PathInfoService> {
+pub fn gen_pathinfo_service<BS, DS>(
+    blob_service: BS,
+    directory_service: DS,
+) -> Arc<dyn PathInfoService>
+where
+    BS: AsRef<dyn BlobService> + Send + Sync + 'static,
+    DS: AsRef<dyn DirectoryService> + Send + Sync + 'static,
+{
     Arc::new(MemoryPathInfoService::new(blob_service, directory_service))
 }