From a6d9bfbaa0bddfc60a0ee9c31c5473278b5a0450 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 12 May 2025 07:43:26 +0200 Subject: [PATCH] mktemp: use keep instead of deprecated into_path --- src/uu/mktemp/src/mktemp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/mktemp/src/mktemp.rs b/src/uu/mktemp/src/mktemp.rs index ea8e080b0..d689115a6 100644 --- a/src/uu/mktemp/src/mktemp.rs +++ b/src/uu/mktemp/src/mktemp.rs @@ -468,8 +468,8 @@ fn make_temp_dir(dir: &Path, prefix: &str, rand: usize, suffix: &str) -> UResult match builder.tempdir_in(dir) { Ok(d) => { - // `into_path` consumes the TempDir without removing it - let path = d.into_path(); + // `keep` consumes the TempDir without removing it + let path = d.keep(); Ok(path) } Err(e) if e.kind() == ErrorKind::NotFound => {