We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 479aefb commit 15bb9b4Copy full SHA for 15bb9b4
src/libextra/dlist.rs
@@ -594,7 +594,7 @@ impl<A: Eq> Eq for DList<A> {
594
}
595
596
fn ne(&self, other: &DList<A>) -> bool {
597
- self.len() != other.len() &&
+ self.len() != other.len() ||
598
iterator::order::ne(self.iter(), other.iter())
599
600
@@ -978,6 +978,10 @@ mod tests {
978
assert!(n != m);
979
m.push_back(1);
980
assert_eq!(&n, &m);
981
+
982
+ let n = list_from([2,3,4]);
983
+ let m = list_from([1,2,3]);
984
+ assert!(n != m);
985
986
987
#[test]
0 commit comments