clippy lint

This commit is contained in:
Damien Elmes 2020-11-01 16:19:03 +10:00
parent 5e602c553f
commit d36162bd49

View file

@ -88,7 +88,7 @@ fn get_ftl_data_from_provided_files(sources: String) -> FTLData {
let path = Path::new("..").join(path); let path = Path::new("..").join(path);
std::fs::read_to_string(path).unwrap() std::fs::read_to_string(path).unwrap()
}); });
if !entry.ends_with("\n") { if !entry.ends_with('\n') {
panic!(".ftl file should end with a newline: {}", path); panic!(".ftl file should end with a newline: {}", path);
} }
match (first_parent, second_parent) { match (first_parent, second_parent) {