diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-24 18:09:44 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-24 18:09:44 +0100 |
commit | 08662582f497f44bb918ef4982c751afd2d6569f (patch) | |
tree | 1dd12158b2e854376afa4ac81b6f206809528629 | |
parent | dc46e87ae835a972ad6376292189acc21864e19d (diff) |
openpgp: Drop XXX.
- We no longer use that crate.
-rw-r--r-- | openpgp/src/cert/components.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/openpgp/src/cert/components.rs b/openpgp/src/cert/components.rs index 365c3f1c..01d4a153 100644 --- a/openpgp/src/cert/components.rs +++ b/openpgp/src/cert/components.rs @@ -1,6 +1,5 @@ //! Types for certificate components. -use std::cmp::Ordering; use std::slice; use std::time; use std::ops::Deref; @@ -156,11 +155,9 @@ impl<C> ComponentBundle<C> { // If we are looking for t == 8, then binary_search could // return index 1, 2, 3 or 4. Ok(mut i) => { - // XXX: we use PartialOrd to compare Tms due to - // https://github.com/rust-lang-deprecated/time/issues/180 while i > 0 && self.self_signatures[i - 1].signature_creation_time() - .cmp(&Some(t)) == Ordering::Equal + == Some(t) { i -= 1; } |