Improve iterator usage

This commit is contained in:
Marcin Puc authored and Martin Nordholts committed 2021-09-12 15:50:10 +02:00
1 parent 372e42f350
commit 7956485e37
5 files changed
+10 -13

No files matched your search

+2 -4
View File
@@ -81,7 +81,7 @@ impl<'a> SyntaxMapping<'a> {
.unwrap();
}
for glob in [
for glob in &[
"**/systemd/**/*.conf",
"**/systemd/**/*.example",
"*.automount",
@@ -100,9 +100,7 @@ impl<'a> SyntaxMapping<'a> {
"*.swap",
"*.target",
"*.timer",
]
.iter()
{
] {
mapping.insert(glob, MappingTarget::MapTo("INI")).unwrap();
}