Skip to content

Commit b122355

Browse files
authored
fix: add must_use attribute to TempDir::keep (#351)
Mistakenly excluded from the previous PR.
1 parent cbd1e97 commit b122355

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dir/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ impl TempDir {
413413
/// fs::remove_dir_all(tmp_path)?;
414414
/// # Ok::<(), std::io::Error>(())
415415
/// ```
416+
#[must_use]
416417
pub fn keep(self) -> PathBuf {
417418
// Prevent the Drop impl from being called.
418419
let mut this = mem::ManuallyDrop::new(self);

0 commit comments

Comments
 (0)