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:
parent
4b3853fb0f
commit
46ea5d73e7
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user