about summary refs log tree commit diff
path: root/src/tools/tidy
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-14 21:11:13 +0200
committerGitHub <noreply@github.com>2023-04-14 21:11:13 +0200
commitd5c7237400129c3b47bd79983ab65b0a38752367 (patch)
tree09c26e7bf82c68afa45000942ea52239087b151d /src/tools/tidy
parentd1c480f986571c77e91f56f1139fa7bb60f9a28c (diff)
parentad2b34d0e37e2f968f226e2401bcb894207ca1c5 (diff)
downloadrust-d5c7237400129c3b47bd79983ab65b0a38752367.tar.gz
rust-d5c7237400129c3b47bd79983ab65b0a38752367.zip
Rollup merge of #110244 - kadiwa4:unnecessary_imports, r=JohnTitor
Remove some unneeded imports / qualified paths

Continuation of #105537.
Diffstat (limited to 'src/tools/tidy')
-rw-r--r--src/tools/tidy/src/bins.rs4
-rw-r--r--src/tools/tidy/src/pal.rs1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/tidy/src/bins.rs b/src/tools/tidy/src/bins.rs
index 7e5b4d810ba..197e9a9965f 100644
--- a/src/tools/tidy/src/bins.rs
+++ b/src/tools/tidy/src/bins.rs
@@ -57,8 +57,8 @@ mod os_impl {
             match fs::File::create(&path) {
                 Ok(file) => {
                     let exec = is_executable(&path).unwrap_or(false);
-                    std::mem::drop(file);
-                    std::fs::remove_file(&path).expect("Deleted temp file");
+                    drop(file);
+                    fs::remove_file(&path).expect("Deleted temp file");
                     // If the file is executable, then we assume that this
                     // filesystem does not track executability, so skip this check.
                     return if exec { Unsupported } else { Supported };
diff --git a/src/tools/tidy/src/pal.rs b/src/tools/tidy/src/pal.rs
index d40c4ad0711..6fd41e83362 100644
--- a/src/tools/tidy/src/pal.rs
+++ b/src/tools/tidy/src/pal.rs
@@ -31,7 +31,6 @@
 //! this in the long term.
 
 use crate::walk::{filter_dirs, walk};
-use std::iter::Iterator;
 use std::path::Path;
 
 // Paths that may contain platform-specific code.