about summary refs log tree commit diff
path: root/clippy_dev/src
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-01-28 19:22:55 +0100
committerPhilipp Krones <hello@philkrones.com>2025-01-28 19:33:54 +0100
commit9da9ddb7db5b3005b38386bed2bf77932e7d4b4c (patch)
treedfeff6fc0ce9272694a4113a7db6fe90b3b75ab4 /clippy_dev/src
parentc5196736b27a32b688b957f2937dd4affadbe14f (diff)
downloadrust-9da9ddb7db5b3005b38386bed2bf77932e7d4b4c.tar.gz
rust-9da9ddb7db5b3005b38386bed2bf77932e7d4b4c.zip
Merge commit '51d49c1ae2785b24ef18a46ef233fc1d91844666' into clippy-subtree-update
Diffstat (limited to 'clippy_dev/src')
-rw-r--r--clippy_dev/src/setup/intellij.rs2
-rw-r--r--clippy_dev/src/update_lints.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_dev/src/setup/intellij.rs b/clippy_dev/src/setup/intellij.rs
index a7138f36a4e..c56811ee0a0 100644
--- a/clippy_dev/src/setup/intellij.rs
+++ b/clippy_dev/src/setup/intellij.rs
@@ -62,7 +62,7 @@ fn check_and_get_rustc_dir(rustc_path: &str) -> Result<PathBuf, ()> {
                 eprintln!("error: unable to get the absolute path of rustc ({err})");
                 return Err(());
             },
-        };
+        }
     }
 
     let path = path.join("compiler");
diff --git a/clippy_dev/src/update_lints.rs b/clippy_dev/src/update_lints.rs
index 612d1c0ae13..fc0780f89a7 100644
--- a/clippy_dev/src/update_lints.rs
+++ b/clippy_dev/src/update_lints.rs
@@ -842,7 +842,7 @@ fn try_rename_file(old_name: &Path, new_name: &Path) -> bool {
         Ok(file) => drop(file),
         Err(e) if matches!(e.kind(), io::ErrorKind::AlreadyExists | io::ErrorKind::NotFound) => return false,
         Err(e) => panic_file(e, new_name, "create"),
-    };
+    }
     match fs::rename(old_name, new_name) {
         Ok(()) => true,
         Err(e) => {