diff --git a/pageserver/src/virtual_file.rs b/pageserver/src/virtual_file.rs index f437deece7..b590f4b81c 100644 --- a/pageserver/src/virtual_file.rs +++ b/pageserver/src/virtual_file.rs @@ -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 + async fn with_file(&self, _op: &str, func: F) -> Result where - F: FnOnce(&'a File) -> FR, - FR: Future + 'a, + F: FnOnce(&File) -> FR, + FR: Future, { let open_files = get_open_files();