about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-10-27 17:07:45 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-10-27 17:07:45 -0700
commit47baebc68cb0cd36e9e098d33314ff533a5e65c6 (patch)
tree88149c93d7896badbf09086395071f59b8da0420
parent209395284799bb86e34cf59493c539a35f6150dd (diff)
Remove un-needed comparisons, suppress warnings
-rw-r--r--src/libcore/hash.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/hash.rs b/src/libcore/hash.rs
index e3bbfbc4129..d938a1d41a3 100644
--- a/src/libcore/hash.rs
+++ b/src/libcore/hash.rs
@@ -505,7 +505,7 @@ pub fn test_hash_no_bytes_dropped_64() {
     assert val.hash() != zero_byte(val, 7).hash();
 
     fn zero_byte(val: u64, byte: uint) -> u64 {
-        assert 0 <= byte; assert byte < 8;
+        assert byte < 8;
         val & !(0xff << (byte * 8))
     }
 }
@@ -520,7 +520,7 @@ pub fn test_hash_no_bytes_dropped_32() {
     assert val.hash() != zero_byte(val, 3).hash();
 
     fn zero_byte(val: u32, byte: uint) -> u32 {
-        assert 0 <= byte; assert byte < 4;
+        assert byte < 4;
         val & !(0xff << (byte * 8))
     }
 }