From 049055e3ff5ffe86700b668e924fbff96e82be94 Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Mon, 22 Nov 2021 12:58:47 +0100 Subject: Remove unnecessary borrows. - Fixed with the help of clippy::needless_borrow. --- openpgp/src/packet/unknown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openpgp/src/packet/unknown.rs') 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())) } } -- cgit v1.2.3