Skip to content

Commit 01d8352

Browse files
committed
De-Total
1 parent 2a0f92a commit 01d8352

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use types::PostgresType;
1313
macro_rules! make_errors(
1414
($($code:expr => $error:ident),+) => (
1515
/// SQLSTATE error codes
16-
#[deriving(PartialEq, TotalEq, Clone)]
16+
#[deriving(PartialEq, Eq, Clone)]
1717
#[allow(missing_doc)]
1818
pub enum PostgresSqlState {
1919
$($error,)+

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ impl<'conn> PostgresStatement<'conn> {
12401240
}
12411241

12421242
/// Information about a column of the result of a query.
1243-
#[deriving(PartialEq, TotalEq)]
1243+
#[deriving(PartialEq, Eq)]
12441244
pub struct ResultDescription {
12451245
/// The name of the column
12461246
pub name: String,

src/types/array.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::mem;
44
use std::slice;
55

66
/// Information about a dimension of an array
7-
#[deriving(PartialEq, TotalEq, Clone, Show)]
7+
#[deriving(PartialEq, Eq, Clone, Show)]
88
pub struct DimensionInfo {
99
/// The size of the dimension
1010
pub len: uint,
@@ -70,7 +70,7 @@ trait InternalMutableArray<T>: MutableArray<T> {
7070
}
7171

7272
/// A multi-dimensional array
73-
#[deriving(PartialEq, TotalEq, Clone)]
73+
#[deriving(PartialEq, Eq, Clone)]
7474
pub struct ArrayBase<T> {
7575
info: Vec<DimensionInfo>,
7676
data: Vec<T>,

src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static RANGE_EMPTY: i8 = 0b0000_0001;
7777
macro_rules! make_postgres_type(
7878
($(#[$doc:meta] $oid:ident => $variant:ident $(member $member:ident)*),+) => (
7979
/// A Postgres type
80-
#[deriving(PartialEq, TotalEq, Clone, Show)]
80+
#[deriving(PartialEq, Eq, Clone, Show)]
8181
pub enum PostgresType {
8282
$(
8383
#[$doc]

src/types/range.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl Normalizable for Timespec {
125125
}
126126
}
127127

128-
#[deriving(PartialEq, TotalEq)]
128+
#[deriving(PartialEq, Eq)]
129129
enum BoundSide {
130130
Upper,
131131
Lower
@@ -156,7 +156,7 @@ impl BoundSided for LowerBound {
156156
}
157157

158158
/// The type of a range bound
159-
#[deriving(PartialEq, TotalEq, Clone)]
159+
#[deriving(PartialEq, Eq, Clone)]
160160
pub enum BoundType {
161161
/// The bound includes its value
162162
Inclusive,
@@ -207,7 +207,7 @@ impl<S: BoundSided, T: PartialEq> PartialEq for RangeBound<S, T> {
207207
}
208208
}
209209

210-
impl<S: BoundSided, T: TotalEq> TotalEq for RangeBound<S, T> {}
210+
impl<S: BoundSided, T: Eq> Eq for RangeBound<S, T> {}
211211

212212
impl<S: BoundSided, T: PartialOrd> PartialOrd for RangeBound<S, T> {
213213
fn lt(&self, other: &RangeBound<S, T>) -> bool {
@@ -219,7 +219,7 @@ impl<S: BoundSided, T: PartialOrd> PartialOrd for RangeBound<S, T> {
219219
}
220220
}
221221

222-
impl<S: BoundSided, T: TotalOrd> TotalOrd for RangeBound<S, T> {
222+
impl<S: BoundSided, T: Ord> Ord for RangeBound<S, T> {
223223
fn cmp(&self, other: &RangeBound<S, T>) -> Ordering {
224224
match (BoundSided::side(None::<S>), self.type_, other.type_,
225225
self.value.cmp(&other.value)) {
@@ -256,7 +256,7 @@ impl<'a, S: BoundSided, T: PartialEq> PartialEq for OptBound<'a, S, T> {
256256
}
257257
}
258258

259-
impl<'a, S: BoundSided, T: TotalEq> TotalEq for OptBound<'a, S, T> {}
259+
impl<'a, S: BoundSided, T: Eq> Eq for OptBound<'a, S, T> {}
260260

261261
impl<'a, S: BoundSided, T: PartialOrd> PartialOrd for OptBound<'a, S, T> {
262262
fn lt(&self, other: &OptBound<'a, S, T>) -> bool {
@@ -270,12 +270,12 @@ impl<'a, S: BoundSided, T: PartialOrd> PartialOrd for OptBound<'a, S, T> {
270270
}
271271

272272
/// Represents a range of values.
273-
#[deriving(PartialEq, TotalEq, Clone)]
273+
#[deriving(PartialEq, Eq, Clone)]
274274
pub struct Range<T> {
275275
inner: InnerRange<T>,
276276
}
277277

278-
#[deriving(PartialEq, TotalEq, Clone)]
278+
#[deriving(PartialEq, Eq, Clone)]
279279
enum InnerRange<T> {
280280
Empty,
281281
Normal(Option<RangeBound<LowerBound, T>>,

0 commit comments

Comments
 (0)