We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbd1e97 commit b122355Copy full SHA for b122355
1 file changed
src/dir/mod.rs
@@ -413,6 +413,7 @@ impl TempDir {
413
/// fs::remove_dir_all(tmp_path)?;
414
/// # Ok::<(), std::io::Error>(())
415
/// ```
416
+ #[must_use]
417
pub fn keep(self) -> PathBuf {
418
// Prevent the Drop impl from being called.
419
let mut this = mem::ManuallyDrop::new(self);
0 commit comments