From 169a57ee8d301c44fb285cc95fc1309d96aa37ab Mon Sep 17 00:00:00 2001 From: Virgile Andreani Date: Sun, 4 May 2014 20:48:16 +0200 Subject: Remove two useless comparisons according to the updated type_limits lint. --- src/libterm/terminfo/parser/compiled.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libterm') diff --git a/src/libterm/terminfo/parser/compiled.rs b/src/libterm/terminfo/parser/compiled.rs index 538a1513d65..db5dd2d5c19 100644 --- a/src/libterm/terminfo/parser/compiled.rs +++ b/src/libterm/terminfo/parser/compiled.rs @@ -220,9 +220,7 @@ pub fn parse(file: &mut io::Reader, if bools_bytes != 0 { for i in range(0, bools_bytes) { let b = try!(file.read_byte()); - if b < 0 { - return Err("error: expected more bools but hit EOF".to_owned()); - } else if b == 1 { + if b == 1 { bools_map.insert(bnames[i as uint].to_owned(), true); } } -- cgit 1.4.1-3-g733a5