1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-25 17:21:43 +00:00

Improve iterator usage

This commit is contained in:
Marcin Puc
2021-09-10 21:56:40 +02:00
committed by Martin Nordholts
parent 372e42f350
commit 7956485e37
5 changed files with 10 additions and 13 deletions
+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();
}