about summary refs log tree commit diff
path: root/tvix/castore/src/import.rs
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2023-10-03T16·53+0000
committerclbot <clbot@tvl.fyi>2023-10-04T08·31+0000
commit9a7c078a69bd73af0d03eb37d3b168cbec64fff2 (patch)
treec155c76cc2dfae3ace1acdda402a241798686b91 /tvix/castore/src/import.rs
parente014c3ef7076262590ea0a801500978044de3106 (diff)
fix(tvix/castore): explicitly name lifetimes in process_entry r/6689
Otherwise this produces absolutely inscrutable errors:

    note: hidden type `[async fn body@castore/src/import.rs:63:1: 63:94]` captures lifetime '_#24r

Change-Id: If5d9626c9edf400de5bcec038bcaa5a3117561f0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9506
Tested-by: BuildkiteCI
Autosubmit: edef <edef@edef.eu>
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/castore/src/import.rs')
-rw-r--r--tvix/castore/src/import.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tvix/castore/src/import.rs b/tvix/castore/src/import.rs
index 92f792bfe704..82011300fe9a 100644
--- a/tvix/castore/src/import.rs
+++ b/tvix/castore/src/import.rs
@@ -61,10 +61,10 @@ impl From<CastoreError> for Error {
 //
 // It assumes the caller adds returned nodes to the directories it assembles.
 #[instrument(skip_all, fields(entry.file_type=?&entry.file_type(),entry.path=?entry.path()))]
-async fn process_entry(
+async fn process_entry<'a>(
     blob_service: Arc<dyn BlobService>,
-    directory_putter: &mut Box<dyn DirectoryPutter>,
-    entry: &walkdir::DirEntry,
+    directory_putter: &'a mut Box<dyn DirectoryPutter>,
+    entry: &'a walkdir::DirEntry,
     maybe_directory: Option<Directory>,
 ) -> Result<Node, Error> {
     let file_type = entry.file_type();