about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-04-05 16:20:23 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-04-05 16:20:23 +0000
commitf91bd7882f311a86cf8005af00f55dc55c744c73 (patch)
treec0e3e6fbd204db38d5b76559891d520d4e0cf4a8 /scripts
parent6728f2fef4286d7060feb7667b5da9ef3f512e34 (diff)
Merge commit 'fbda869b4e230c788b6bce426038ba8419956f2d' into sync_cg_clif-2024-04-05
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/filter_profile.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/filter_profile.rs b/scripts/filter_profile.rs
index 03912b18ea5..0252d5b3340 100755
--- a/scripts/filter_profile.rs
+++ b/scripts/filter_profile.rs
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-#![forbid(unsafe_code)]/* This line is ignored by bash
+#![rustfmt::skip]/* This line is ignored by bash
 # This block is ignored by rustc
 pushd $(dirname "$0")/../
 RUSTC="$(pwd)/dist/rustc-clif"
@@ -26,11 +26,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
     }
     let profile = std::fs::read_to_string(profile_name)
         .map_err(|err| format!("Failed to read profile {}", err))?;
-    let mut output = std::fs::OpenOptions::new()
-        .create(true)
-        .write(true)
-        .truncate(true)
-        .open(output_name)?;
+    let mut output =
+        std::fs::OpenOptions::new().create(true).write(true).truncate(true).open(output_name)?;
 
     for line in profile.lines() {
         let mut stack = &line[..line.rfind(" ").unwrap()];