Fix compilation with virt and no-default-features

This commit is contained in:
Sosthène Guédon
2024-03-05 10:58:22 +01:00
parent fdb0dd29bc
commit f2cfa2ea24
+2
View File
@@ -246,6 +246,7 @@ where
with_client(Ram::default(), client_id, f)
}
#[cfg(feature = "manage")]
pub fn with_ram_client_and_preserve<R, F>(
client_id: &str,
should_preserve_file: fn(&Path, location: Location) -> bool,
@@ -257,6 +258,7 @@ where
with_client_and_preserve(Ram::default(), client_id, f, should_preserve_file)
}
#[cfg(feature = "manage")]
pub fn with_ram_clients_and_preserve<R, F, const N: usize>(
client_ids: [&str; N],
should_preserve_file: fn(&Path, location: Location) -> bool,