mirror of https://github.com/rwf2/Rocket.git
drop PartialOrd
This commit is contained in:
parent
332c113724
commit
2776db85ff
|
@ -3,7 +3,6 @@ extern crate uuid as uuid_ext;
|
|||
use std::fmt;
|
||||
use std::str::FromStr;
|
||||
use std::ops::Deref;
|
||||
use std::cmp::Ordering;
|
||||
|
||||
use rocket::request::FromParam;
|
||||
|
||||
|
@ -101,13 +100,6 @@ impl PartialEq<uuid_ext::Uuid> for UUID {
|
|||
}
|
||||
}
|
||||
|
||||
impl PartialOrd<uuid_ext::Uuid> for UUID {
|
||||
#[inline(always)]
|
||||
fn partial_cmp(&self, other: &uuid_ext::Uuid) -> Option<Ordering> {
|
||||
Some(self.0.cmp(other))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::uuid_ext;
|
||||
|
|
Loading…
Reference in New Issue