xtask: Add copyright headers to CARGO.toml files as well

This commit is contained in:
Tobias Hunger 2021-12-21 13:46:56 +01:00
parent ecf6ac4558
commit c22f3322ca

View file

@ -633,7 +633,10 @@ impl LicenseHeaderCheck {
match location { match location {
LicenseLocation::Tag(tag_style) => self.check_file_tags(path, tag_style), LicenseLocation::Tag(tag_style) => self.check_file_tags(path, tag_style),
LicenseLocation::Crate => self.check_cargo_toml(path), LicenseLocation::Crate => {
self.check_file_tags(path, &LicenseTagStyle::shell_comment_style())?;
self.check_cargo_toml(path)
}
LicenseLocation::NoLicense => { LicenseLocation::NoLicense => {
if self.verbose { if self.verbose {
println!("Skipping {} as configured", path_str); println!("Skipping {} as configured", path_str);