Format code with cargo fmt.

This commit is contained in:
Jonas Belouadi authored and Wez Furlong committed 2021-08-23 16:32:43 -07:00
1 parent 4b3853fb0f
commit 46ea5d73e7
1 file changed
+5 -3
+5 -3
View File
@@ -86,9 +86,11 @@ impl From<Palette> for wezterm_term::color::ColorPalette {
}
}
if let Some(indexed) = cfg.indexed {
for (idx, col) in indexed.iter()
.filter_map(|(k, v)| Some((k.parse::<usize>().ok()?, v)))
.filter(|&(k, _)| 15 < k && k < 256) {
for (idx, col) in indexed
.iter()
.filter_map(|(k, v)| Some((k.parse::<usize>().ok()?, v)))
.filter(|&(k, _)| 15 < k && k < 256)
{
p.colors.0[idx] = *col;
}
}