From 542ee159a40bce3dc972cd0b9e6a6af03300cc70 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Mon, 30 Oct 2017 20:54:20 -0400 Subject: [PATCH] Remove questionable Ord derives --- src/mailbox.rs | 2 +- src/mock_stream.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mailbox.rs b/src/mailbox.rs index 9e2456a7..f6bb3757 100644 --- a/src/mailbox.rs +++ b/src/mailbox.rs @@ -1,6 +1,6 @@ use std::fmt; -#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd, Hash)] +#[derive(Clone, Debug, Eq, PartialEq, Hash)] pub struct Mailbox { pub flags: String, pub exists: u32, diff --git a/src/mock_stream.rs b/src/mock_stream.rs index 81325ddc..fdda0200 100644 --- a/src/mock_stream.rs +++ b/src/mock_stream.rs @@ -1,7 +1,7 @@ use std::io::{Error, ErrorKind, Read, Result, Write}; use std::cmp::min; -#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd, Hash)] +#[derive(Clone, Debug, Eq, PartialEq, Hash)] pub struct MockStream { read_buf: Vec, read_pos: usize,