aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/ansi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal/src/ansi.rs')
-rw-r--r--alacritty_terminal/src/ansi.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/alacritty_terminal/src/ansi.rs b/alacritty_terminal/src/ansi.rs
index 3189b300..eb8283a6 100644
--- a/alacritty_terminal/src/ansi.rs
+++ b/alacritty_terminal/src/ansi.rs
@@ -52,11 +52,7 @@ fn parse_rgb_color(color: &[u8]) -> Option<Rgb> {
Some((255 * value / max) as u8)
};
- Some(Rgb {
- r: scale(colors[0])?,
- g: scale(colors[1])?,
- b: scale(colors[2])?,
- })
+ Some(Rgb { r: scale(colors[0])?, g: scale(colors[1])?, b: scale(colors[2])? })
}
// Parse colors in `#r(rrr)g(ggg)b(bbb)` format
@@ -1449,8 +1445,8 @@ pub mod C1 {
#[cfg(test)]
mod tests {
use super::{
- parse_number, xparse_color, Attr, CharsetIndex, Color, Handler, Processor,
- StandardCharset, TermInfo,
+ parse_number, xparse_color, Attr, CharsetIndex, Color, Handler, Processor, StandardCharset,
+ TermInfo,
};
use crate::index::{Column, Line};
use crate::term::color::Rgb;