Skip to content

Commit d9f29fa

Browse files
committed
Rustfmt all scripts
1 parent 7cdec71 commit d9f29fa

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
cargo fmt --check
2424
rustfmt --check build_system/main.rs
2525
rustfmt --check example/*
26+
rustfmt --check scripts/*.rs
2627
2728
2829
test:

scripts/filter_profile.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
#![forbid(unsafe_code)]/* This line is ignored by bash
2+
#![rustfmt::skip]/* This line is ignored by bash
33
# This block is ignored by rustc
44
pushd $(dirname "$0")/../
55
RUSTC="$(pwd)/dist/rustc-clif"
@@ -26,11 +26,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
2626
}
2727
let profile = std::fs::read_to_string(profile_name)
2828
.map_err(|err| format!("Failed to read profile {}", err))?;
29-
let mut output = std::fs::OpenOptions::new()
30-
.create(true)
31-
.write(true)
32-
.truncate(true)
33-
.open(output_name)?;
29+
let mut output =
30+
std::fs::OpenOptions::new().create(true).write(true).truncate(true).open(output_name)?;
3431

3532
for line in profile.lines() {
3633
let mut stack = &line[..line.rfind(" ").unwrap()];

0 commit comments

Comments
 (0)