cargo fmt

This commit is contained in:
Wez Furlong committed 2021-05-11 19:19:55 -07:00
1 parent 3c6fb77879
commit d246ef4cdc
2 files changed
+6 -7

No files matched your search

+6 -6
View File
@@ -2099,9 +2099,9 @@ impl<'a> CSIParser<'a> {
&[Some(38), Some(2), _colorspace, Some(r), Some(g), Some(b)] => one!(
Sgr::Foreground(RgbColor::new(r as u8, g as u8, b as u8).into())
),
&[Some(38), Some(2), Some(r), Some(g), Some(b)] => one!(
Sgr::Foreground(RgbColor::new(r as u8, g as u8, b as u8).into())
),
&[Some(38), Some(2), Some(r), Some(g), Some(b)] => one!(Sgr::Foreground(
RgbColor::new(r as u8, g as u8, b as u8).into()
)),
&[Some(38), Some(5), Some(idx)] => {
one!(Sgr::Foreground(ColorSpec::PaletteIndex(idx as u8)))
}
@@ -2109,9 +2109,9 @@ impl<'a> CSIParser<'a> {
&[Some(48), Some(2), _colorspace, Some(r), Some(g), Some(b)] => one!(
Sgr::Background(RgbColor::new(r as u8, g as u8, b as u8).into())
),
&[Some(48), Some(2), Some(r), Some(g), Some(b)] => one!(
Sgr::Background(RgbColor::new(r as u8, g as u8, b as u8).into())
),
&[Some(48), Some(2), Some(r), Some(g), Some(b)] => one!(Sgr::Background(
RgbColor::new(r as u8, g as u8, b as u8).into()
)),
&[Some(48), Some(5), Some(idx)] => {
one!(Sgr::Background(ColorSpec::PaletteIndex(idx as u8)))
}
-1
View File
@@ -531,7 +531,6 @@ mod test {
],
actions
);
}
#[test]