Skip to content

Commit 5544efc

Browse files
author
blake2-ppc
committed
---
yaml --- r: 64568 b: refs/heads/snap-stage3 c: 21adfd5 h: refs/heads/master v: v3
1 parent a38d112 commit 5544efc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: b1a071e3149e5dac0e8df863479e2f29632e5399
4+
refs/heads/snap-stage3: 21adfd564555428d0af11e7f22b42e05698d74fd
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libextra/dlist.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
// the reverse direction.
2424

2525
use std::cast;
26-
use std::cmp;
2726
use std::ptr;
2827
use std::util;
2928
use std::iterator::{FromIterator, InvertIterator};
@@ -396,13 +395,13 @@ impl<T> DList<T> {
396395
}
397396
}
398397

399-
impl<T: cmp::TotalOrd> DList<T> {
398+
impl<T: Ord> DList<T> {
400399
/// Insert `elt` sorted in ascending order
401400
///
402401
/// O(N)
403402
#[inline]
404403
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)
406405
}
407406
}
408407

0 commit comments

Comments
 (0)