You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
ksud_overlayfs: change find_temp_path to use keep() method for temporary directory since into_path() is deprecated
This commit is contained in:
@@ -192,7 +192,6 @@ fn is_ok_empty(dir: &str) -> bool {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(deprecated)]
|
|
||||||
fn find_temp_path() -> String {
|
fn find_temp_path() -> String {
|
||||||
use std::result::Result::Ok;
|
use std::result::Result::Ok;
|
||||||
|
|
||||||
@@ -204,7 +203,7 @@ fn find_temp_path() -> String {
|
|||||||
let r = tempfile::tempdir_in("/dev/");
|
let r = tempfile::tempdir_in("/dev/");
|
||||||
match r {
|
match r {
|
||||||
Ok(tmp_dir) => {
|
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();
|
return path.to_string();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user