Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fixture/dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/fixture/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading