From c22f3322ca552016de59681a85d95b5c8564406c Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 21 Dec 2021 13:46:56 +0100 Subject: [PATCH] xtask: Add copyright headers to CARGO.toml files as well --- xtask/src/license_headers_check.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xtask/src/license_headers_check.rs b/xtask/src/license_headers_check.rs index ce361955d..1470f0326 100644 --- a/xtask/src/license_headers_check.rs +++ b/xtask/src/license_headers_check.rs @@ -633,7 +633,10 @@ impl LicenseHeaderCheck { match location { 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 => { if self.verbose { println!("Skipping {} as configured", path_str);