daemon: set_var is now unsafe

In edition 2024 set_var is unsafe.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2025-03-04 15:40:44 +01:00 committed by Wolfgang Bumiller
parent abd07ffcff
commit 9be42ea5ad

View File

@ -79,7 +79,7 @@ impl Reloader {
fn pre_exec(self) -> Result<(), Error> { fn pre_exec(self) -> Result<(), Error> {
for item in self.pre_exec { for item in self.pre_exec {
std::env::set_var(item.name, (item.store_fn)()?); unsafe { std::env::set_var(item.name, (item.store_fn)()?) };
} }
Ok(()) Ok(())
} }