summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/unknown.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-11-22 12:58:47 +0100
committerNora Widdecke <nora@sequoia-pgp.org>2021-11-29 11:53:55 +0100
commit049055e3ff5ffe86700b668e924fbff96e82be94 (patch)
tree30dfd63e4d1c3016210b698813e99b70787890e8 /openpgp/src/packet/unknown.rs
parent97ce753fefae770ee0b5b02a611d75e29a7cd01d (diff)
Remove unnecessary borrows.
- Fixed with the help of clippy::needless_borrow.
Diffstat (limited to 'openpgp/src/packet/unknown.rs')
-rw-r--r--openpgp/src/packet/unknown.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/unknown.rs b/openpgp/src/packet/unknown.rs
index 885bfddc..50000a61 100644
--- a/openpgp/src/packet/unknown.rs
+++ b/openpgp/src/packet/unknown.rs
@@ -135,7 +135,7 @@ impl Unknown {
/// case.
pub(crate) // For cert/mod.rs
fn best_effort_cmp(&self, other: &Unknown) -> Ordering {
- self.tag.cmp(&other.tag).then_with(|| self.body().cmp(&other.body()))
+ self.tag.cmp(&other.tag).then_with(|| self.body().cmp(other.body()))
}
}