From 9a7c078a69bd73af0d03eb37d3b168cbec64fff2 Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 3 Oct 2023 16:53:12 +0000 Subject: fix(tvix/castore): explicitly name lifetimes in process_entry 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 Reviewed-by: flokli --- tvix/castore/src/import.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tvix') 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 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, - directory_putter: &mut Box, - entry: &walkdir::DirEntry, + directory_putter: &'a mut Box, + entry: &'a walkdir::DirEntry, maybe_directory: Option, ) -> Result { let file_type = entry.file_type(); -- cgit 1.4.1