Fixing formatting for lints
@@ -860,8 +860,7 @@ mod test {
let manifest_path = "test-crates/license-test";
let cargo_toml_str = fs_err::read_to_string("test-crates/license-test/Cargo.toml").unwrap();
let cargo_toml: CargoToml = toml_edit::easy::from_str(&cargo_toml_str).unwrap();
- let metadata =
- Metadata21::from_cargo_toml(&cargo_toml, manifest_path).unwrap();
+ let metadata = Metadata21::from_cargo_toml(&cargo_toml, manifest_path).unwrap();
// verify Cargo.toml value came through
assert_eq!(metadata.license.as_ref().unwrap(), "MIT");
@@ -876,11 +875,23 @@ mod test {
assert_eq!(4, license_files_strings.len());
// Verify pyproject.toml license = {file = ...} worked
- assert_eq!(license_files_strings[0], format!("{}/LICENCE.txt", manifest_path));
+ assert_eq!(
+ license_files_strings[0],
+ format!("{}/LICENCE.txt", manifest_path)
+ );
// Verify the default licenses were included
- assert_eq!(license_files_strings[1], format!("{}/LICENSE", manifest_path));
- assert_eq!(license_files_strings[2], format!("{}/NOTICE.md", manifest_path));
- assert_eq!(license_files_strings[3], format!("{}/AUTHORS.txt", manifest_path));
+ assert_eq!(
+ license_files_strings[1],
+ format!("{}/LICENSE", manifest_path)
+ );
+ assert_eq!(
+ license_files_strings[2],
+ format!("{}/NOTICE.md", manifest_path)
+ );
+ assert_eq!(
+ license_files_strings[3],
+ format!("{}/AUTHORS.txt", manifest_path)
+ );
}
}
