use helper function instead of writing rustfmt stamp by hand
This commit is contained in:
parent
502b630cd1
commit
52f4b16075
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue