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_pile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openpgp/src/packet_pile.rs') diff --git a/openpgp/src/packet_pile.rs b/openpgp/src/packet_pile.rs index 686f7715..98f70c66 100644 --- a/openpgp/src/packet_pile.rs +++ b/openpgp/src/packet_pile.rs @@ -267,7 +267,7 @@ impl PacketPile { let mut cont = Some(&self.top_level); for i in pathspec { - if let Some(ref c) = cont.take() { + if let Some(c) = cont.take() { if let Some(children) = c.children_ref() { if *i < children.len() { let p = &children[*i]; -- cgit v1.2.3