File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: b1a071e3149e5dac0e8df863479e2f29632e5399
4
+ refs/heads/snap-stage3: 21adfd564555428d0af11e7f22b42e05698d74fd
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change 23
23
// the reverse direction.
24
24
25
25
use std:: cast;
26
- use std:: cmp;
27
26
use std:: ptr;
28
27
use std:: util;
29
28
use std:: iterator:: { FromIterator , InvertIterator } ;
@@ -396,13 +395,13 @@ impl<T> DList<T> {
396
395
}
397
396
}
398
397
399
- impl < T : cmp :: TotalOrd > DList < T > {
398
+ impl < T : Ord > DList < T > {
400
399
/// Insert `elt` sorted in ascending order
401
400
///
402
401
/// O(N)
403
402
#[ inline]
404
403
pub fn insert_ordered ( & mut self , elt : T ) {
405
- self . insert_when ( elt, |a, b| a. cmp ( b ) != cmp :: Less ) ;
404
+ self . insert_when ( elt, |a, b| a >= b )
406
405
}
407
406
}
408
407
You can’t perform that action at this time.
0 commit comments