xtask: Save license changes in Cargo.toml file

This commit is contained in:
Tobias Hunger 2023-06-15 16:17:35 +02:00 committed by Olivier Goffart
parent ef0ce14930
commit 4a24d9cfdc

View file

@ -630,7 +630,7 @@ impl LicenseHeaderCheck {
if !doc.published()? {
// Skip further tests for package that are not published
return Ok(());
return doc.save_if_changed();
}
if doc.check_and_fix_package_string_field(false, "homepage", ALLOWED_HOMEPAGE).is_err() {