From f2cfa2ea24325f1766b9a941c88452864120747e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Tue, 5 Mar 2024 10:58:22 +0100 Subject: [PATCH] Fix compilation with `virt` and `no-default-features` --- src/virt.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/virt.rs b/src/virt.rs index 94f6cc4..6eb2f7a 100644 --- a/src/virt.rs +++ b/src/virt.rs @@ -246,6 +246,7 @@ where with_client(Ram::default(), client_id, f) } +#[cfg(feature = "manage")] pub fn with_ram_client_and_preserve( 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( client_ids: [&str; N], should_preserve_file: fn(&Path, location: Location) -> bool,