diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2017-01-06 15:48:23 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2017-01-06 20:17:10 -0800 |
commit | c579d079939b5d4ee3127579de732f037e612c28 (patch) | |
tree | c5494720937e0c531c305663823761b137289a31 /src/ansi.rs | |
parent | ee5a9f133869809385bef96fcded4f22ddcc003f (diff) | |
download | alacritty-c579d079939b5d4ee3127579de732f037e612c28.tar.gz alacritty-c579d079939b5d4ee3127579de732f037e612c28.zip |
Remove need for range_contains feature
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ansi.rs b/src/ansi.rs index e5c129e3..345e4e64 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -18,7 +18,7 @@ use std::io; use vte; -use index::{Column, Line}; +use index::{Column, Line, Contains}; use ::Rgb; @@ -744,7 +744,7 @@ fn parse_color(attrs: &[i64], i: &mut usize) -> Option<Color> { *i += 4; let range = 0...255; - if !range.contains(r) || !range.contains(g) || !range.contains(b) { + if !range.contains_(r) || !range.contains_(g) || !range.contains_(b) { err_println!("Invalid RGB color spec: ({}, {}, {})", r, g, b); return None; } |