use helper function instead of writing rustfmt stamp by hand

This commit is contained in:
Waffle Lapkin 2025-04-15 14:06:51 +02:00
parent 502b630cd1
commit 52f4b16075
No known key found for this signature in database

View file

@ -81,7 +81,8 @@ fn update_rustfmt_version(build: &Builder<'_>) {
let Some((version, stamp_file)) = get_rustfmt_version(build) else {
return;
};
t!(std::fs::write(stamp_file.path(), version))
t!(stamp_file.add_stamp(version).write());
}
/// Returns the Rust files modified between the `merge-base` of HEAD and