From 7d2e08fdd173fbbb4bc9e49cdd45d204fc814f7b Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Mon, 2 Oct 2023 03:52:28 +0100 Subject: [PATCH] Mute warnings --- protobuf-parse/src/protobuf_rel_path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protobuf-parse/src/protobuf_rel_path.rs b/protobuf-parse/src/protobuf_rel_path.rs index 2946f495c..f6d7a092c 100644 --- a/protobuf-parse/src/protobuf_rel_path.rs +++ b/protobuf-parse/src/protobuf_rel_path.rs @@ -72,11 +72,11 @@ impl ProtobufRelPathRef { } pub fn self_and_parents(&self) -> Vec<&ProtobufRelPathRef> { - let mut tmp = self.clone(); + let mut tmp = self; let mut r = Vec::new(); - r.push(self.clone()); + r.push(self); while let Some(parent) = tmp.parent() { r.push(parent);