From 59316d7ca14be23c2e66ea9823e4f8700eb01589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Fri, 9 Jan 2015 22:22:34 +0100 Subject: [PATCH] Remove tabs. --- src/structs/vec_macros.rs | 64 +++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/src/structs/vec_macros.rs b/src/structs/vec_macros.rs index fc8295f6..8c781e74 100644 --- a/src/structs/vec_macros.rs +++ b/src/structs/vec_macros.rs @@ -93,39 +93,39 @@ macro_rules! ord_impl( #[inline] #[allow(unused_mut)] // otherwise there will be a warning for is_eq or Vec1. fn partial_cmp(&self, other: &$t) -> POrdering { - let mut first = true; - let mut is_lt = false; + let mut first = true; + let mut is_lt = false; let mut is_eq = false; $( - if first { - is_lt = self.$compN < other.$compN; - is_eq = self.$compN == other.$compN; - first = false; - } - else if is_lt { // < - if self.$compN > other.$compN { - return POrdering::NotComparable - } - } - else { // >= - if self.$compN < other.$compN { - return POrdering::NotComparable - } - else if self.$compN > other.$compN { - is_eq = false; - } - } - )+ - - if is_lt { - POrdering::PartialLess - } - else if is_eq { - POrdering::PartialEqual - } - else { - POrdering::PartialGreater - } + if first { + is_lt = self.$compN < other.$compN; + is_eq = self.$compN == other.$compN; + first = false; + } + else if is_lt { // < + if self.$compN > other.$compN { + return POrdering::NotComparable + } + } + else { // >= + if self.$compN < other.$compN { + return POrdering::NotComparable + } + else if self.$compN > other.$compN { + is_eq = false; + } + } + )+ + + if is_lt { + POrdering::PartialLess + } + else if is_eq { + POrdering::PartialEqual + } + else { + POrdering::PartialGreater + } } #[inline] @@ -693,7 +693,7 @@ macro_rules! from_iterator_impl( #[inline] fn from_iter>(mut $param0: I) -> $t { $t::new($param0.next().unwrap(), - $($paramN.next().unwrap()),+) + $($paramN.next().unwrap()),+) } } )