Skip to content

Commit 52f4b16

Browse files
committed
use helper function instead of writing rustfmt stamp by hand
1 parent 502b630 commit 52f4b16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/src/core/build_steps/format.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ fn update_rustfmt_version(build: &Builder<'_>) {
8181
let Some((version, stamp_file)) = get_rustfmt_version(build) else {
8282
return;
8383
};
84-
t!(std::fs::write(stamp_file.path(), version))
84+
85+
t!(stamp_file.add_stamp(version).write());
8586
}
8687

8788
/// Returns the Rust files modified between the `merge-base` of HEAD and

0 commit comments

Comments
 (0)