This commit is contained in:
Arpad Müller
2023-09-08 18:25:05 +02:00
parent f417db52e0
commit c056db20c7

View File

@@ -343,10 +343,10 @@ impl VirtualFile {
/// Helper function that looks up the underlying File for this VirtualFile,
/// opening it and evicting some other File if necessary. It calls 'func'
/// with the physical File.
async fn with_file<'a, F, R, FR>(&self, _op: &str, func: F) -> Result<R, Error>
async fn with_file<F, R, FR>(&self, _op: &str, func: F) -> Result<R, Error>
where
F: FnOnce(&'a File) -> FR,
FR: Future<Output = R> + 'a,
F: FnOnce(&File) -> FR,
FR: Future<Output = R>,
{
let open_files = get_open_files();