about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2024-06-07 14:07:02 +0200
committerJakub Beránek <berykubik@gmail.com>2024-06-07 14:07:02 +0200
commitc9cb3280f365621d724d4f07a8dc96b325a107c9 (patch)
tree4ff3aba7904249d373c43e7c791daf731d9e2a3c /src/tools
parent4b0842f3cedc26ba841b6e8fb7314da2048c5ee2 (diff)
Address review comments
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/compiletest/src/runtest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index c50dd2d5a99..6d4b50a9238 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -3463,7 +3463,7 @@ impl<'test> TestCx<'test> {
         // to the `rmake_out` directory.
         for path in walkdir::WalkDir::new(&self.testpaths.file).min_depth(1) {
             let path = path.unwrap().path().to_path_buf();
-            if path.file_name().map(|s| s != OsStr::new("rmake.rs")).unwrap_or(false) {
+            if path.file_name().is_some_and(|s| s != "rmake.rs") {
                 let target = rmake_out_dir.join(path.strip_prefix(&self.testpaths.file).unwrap());
                 if path.is_dir() {
                     copy_dir_all(&path, target).unwrap();