diff --git a/userspace/ksud_overlayfs/src/utils.rs b/userspace/ksud_overlayfs/src/utils.rs index 8c5c440c..ecb370b6 100644 --- a/userspace/ksud_overlayfs/src/utils.rs +++ b/userspace/ksud_overlayfs/src/utils.rs @@ -192,7 +192,6 @@ fn is_ok_empty(dir: &str) -> bool { } } -#[allow(deprecated)] fn find_temp_path() -> String { use std::result::Result::Ok; @@ -204,7 +203,7 @@ fn find_temp_path() -> String { let r = tempfile::tempdir_in("/dev/"); match r { Ok(tmp_dir) => { - if let Some(path) = tmp_dir.into_path().to_str() { + if let Some(path) = tmp_dir.keep().to_str() { return path.to_string(); } }