From 3d417bd8955bde005192c1003178f330bfae4e3b Mon Sep 17 00:00:00 2001 From: Andreas Rottmann Date: Sun, 11 Oct 2026 20:41:02 +0200 Subject: [PATCH] chore(deps): Fix deprecation warnings for `tempfile` The `TempDir::into_path` method has been deprecated in favor of `keep` in `tempfile` 3.20 (so no version bump is necessary). --- src/fixture/dir.rs | 2 +- src/fixture/file.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fixture/dir.rs b/src/fixture/dir.rs index 10ba2bc..fb72374 100644 --- a/src/fixture/dir.rs +++ b/src/fixture/dir.rs @@ -217,7 +217,7 @@ impl TempDir { /// ``` pub fn into_persistent(self) -> Self { let path = match self.temp { - Inner::Temp(temp) => temp.into_path(), + Inner::Temp(temp) => temp.keep(), Inner::Persisted(path) => path, }; let temp = Inner::Persisted(path); diff --git a/src/fixture/file.rs b/src/fixture/file.rs index ed5a244..988ef4a 100644 --- a/src/fixture/file.rs +++ b/src/fixture/file.rs @@ -138,7 +138,7 @@ impl NamedTempFile { let mut temp = Inner::Persisted; ::std::mem::swap(&mut self.temp, &mut temp); if let Inner::Temp(temp) = temp { - _ = temp.into_path(); + _ = temp.keep(); } self