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 <edef@edef.eu> Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
e014c3ef70
commit
9a7c078a69
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue