File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: 0983ebe5310d4eb6d289f636f7ed0536c08bbc0e
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: 479aefb6709eaa0ed83253aeab36a553e826c417
9
+ refs/heads/dist-snap: 15bb9b4e1abf06ada9985effc3ef034d017a4c18
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ impl<A: Eq> Eq for DList<A> {
594
594
}
595
595
596
596
fn ne ( & self , other : & DList < A > ) -> bool {
597
- self . len ( ) != other. len ( ) &&
597
+ self . len ( ) != other. len ( ) ||
598
598
iterator:: order:: ne ( self . iter ( ) , other. iter ( ) )
599
599
}
600
600
}
@@ -978,6 +978,10 @@ mod tests {
978
978
assert ! ( n != m) ;
979
979
m. push_back ( 1 ) ;
980
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) ;
981
985
}
982
986
983
987
#[ test]
You can’t perform that action at this time.
0 commit comments