diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-09-29 13:13:54 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-09-29 13:13:54 +0200 |
commit | b3ed8e3a2efcbf47b20358a497668d3df202d53a (patch) | |
tree | dc92df1e7cda2d7693a6b37219d60a0ae2061e8b | |
parent | 7e9561e933088a935e2f6e238255a8836b9369d9 (diff) |
openpgp: Align Signature::normalized_cmp with Signature::cmp.
-rw-r--r-- | openpgp/src/packet/signature/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/packet/signature/mod.rs b/openpgp/src/packet/signature/mod.rs index 35a3c33c..626e85ee 100644 --- a/openpgp/src/packet/signature/mod.rs +++ b/openpgp/src/packet/signature/mod.rs @@ -1983,13 +1983,13 @@ impl crate::packet::Signature { /// ``` pub fn normalized_cmp(&self, other: &Signature) -> Ordering { - self.mpis().cmp(other.mpis()) - .then_with(|| self.version().cmp(&other.version())) + self.version().cmp(&other.version()) .then_with(|| self.typ().cmp(&other.typ())) .then_with(|| self.pk_algo().cmp(&other.pk_algo())) .then_with(|| self.hash_algo().cmp(&other.hash_algo())) .then_with(|| self.hashed_area().cmp(other.hashed_area())) .then_with(|| self.digest_prefix().cmp(other.digest_prefix())) + .then_with(|| self.mpis().cmp(other.mpis())) } /// Normalizes the signature. |