We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2093952 commit 47baebcCopy full SHA for 47baebc
src/libcore/hash.rs
@@ -505,7 +505,7 @@ pub fn test_hash_no_bytes_dropped_64() {
505
assert val.hash() != zero_byte(val, 7).hash();
506
507
fn zero_byte(val: u64, byte: uint) -> u64 {
508
- assert 0 <= byte; assert byte < 8;
+ assert byte < 8;
509
val & !(0xff << (byte * 8))
510
}
511
@@ -520,7 +520,7 @@ pub fn test_hash_no_bytes_dropped_32() {
520
assert val.hash() != zero_byte(val, 3).hash();
521
522
fn zero_byte(val: u32, byte: uint) -> u32 {
523
- assert 0 <= byte; assert byte < 4;
+ assert byte < 4;
524
525
526
0 commit comments