1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 11:17:15 +03:00

Format code with cargo fmt.

This commit is contained in:
Jonas Belouadi 2021-08-21 13:59:46 +02:00 committed by Wez Furlong
parent 4b3853fb0f
commit 46ea5d73e7

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;
}
}