We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0162a95 commit 7ecdbfcCopy full SHA for 7ecdbfc
src/rustup-dist/src/temp.rs
@@ -1,3 +1,5 @@
1
+extern crate remove_dir_all;
2
+
3
use std::error;
4
use std::fs;
5
use std::path::{Path, PathBuf};
@@ -237,7 +239,7 @@ impl<'a> ops::Deref for File<'a> {
237
239
impl<'a> Drop for Dir<'a> {
238
240
fn drop(&mut self) {
241
if raw::is_directory(&self.path) {
- let n = Notification::DirectoryDeletion(&self.path, fs::remove_dir_all(&self.path));
242
+ let n = Notification::DirectoryDeletion(&self.path, remove_dir_all::remove_dir_all(&self.path));
243
(self.cfg.notify_handler)(n);
244
}
245
0 commit comments