Remove tabs.
This commit is contained in:
parent
d9fdb64b4d
commit
59316d7ca1
|
@ -93,39 +93,39 @@ macro_rules! ord_impl(
|
||||||
#[inline]
|
#[inline]
|
||||||
#[allow(unused_mut)] // otherwise there will be a warning for is_eq or Vec1.
|
#[allow(unused_mut)] // otherwise there will be a warning for is_eq or Vec1.
|
||||||
fn partial_cmp(&self, other: &$t<N>) -> POrdering {
|
fn partial_cmp(&self, other: &$t<N>) -> POrdering {
|
||||||
let mut first = true;
|
let mut first = true;
|
||||||
let mut is_lt = false;
|
let mut is_lt = false;
|
||||||
let mut is_eq = false;
|
let mut is_eq = false;
|
||||||
$(
|
$(
|
||||||
if first {
|
if first {
|
||||||
is_lt = self.$compN < other.$compN;
|
is_lt = self.$compN < other.$compN;
|
||||||
is_eq = self.$compN == other.$compN;
|
is_eq = self.$compN == other.$compN;
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
else if is_lt { // <
|
else if is_lt { // <
|
||||||
if self.$compN > other.$compN {
|
if self.$compN > other.$compN {
|
||||||
return POrdering::NotComparable
|
return POrdering::NotComparable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { // >=
|
else { // >=
|
||||||
if self.$compN < other.$compN {
|
if self.$compN < other.$compN {
|
||||||
return POrdering::NotComparable
|
return POrdering::NotComparable
|
||||||
}
|
}
|
||||||
else if self.$compN > other.$compN {
|
else if self.$compN > other.$compN {
|
||||||
is_eq = false;
|
is_eq = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)+
|
)+
|
||||||
|
|
||||||
if is_lt {
|
if is_lt {
|
||||||
POrdering::PartialLess
|
POrdering::PartialLess
|
||||||
}
|
}
|
||||||
else if is_eq {
|
else if is_eq {
|
||||||
POrdering::PartialEqual
|
POrdering::PartialEqual
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
POrdering::PartialGreater
|
POrdering::PartialGreater
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
@ -693,7 +693,7 @@ macro_rules! from_iterator_impl(
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from_iter<I: Iterator<Item = N>>(mut $param0: I) -> $t<N> {
|
fn from_iter<I: Iterator<Item = N>>(mut $param0: I) -> $t<N> {
|
||||||
$t::new($param0.next().unwrap(),
|
$t::new($param0.next().unwrap(),
|
||||||
$($paramN.next().unwrap()),+)
|
$($paramN.next().unwrap()),+)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue