Use assert_ne!() for symmetry.

This commit is contained in:
KAMADA Ken'ichi 2017-04-08 20:19:04 +09:00
parent 0c34e29ecb
commit a83a0fc8eb
1 changed files with 2 additions and 2 deletions

View File

@ -121,8 +121,8 @@ mod tests {
}
assert_eq!(dispatch_sub::<BigEndian> as *const (),
dispatch_sub::<BigEndian> as *const ());
assert!(dispatch_sub::<BigEndian> as *const () !=
dispatch_sub::<LittleEndian> as *const ());
assert_ne!(dispatch_sub::<BigEndian> as *const (),
dispatch_sub::<LittleEndian> as *const ());
}
#[test]