From d2133c5bcfd5b6c2e8dc3d17f6d542bc537179c5 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Mon, 2 Oct 2023 03:48:44 +0100 Subject: [PATCH] Mute a warning --- protobuf-parse/src/pure/convert/option_resolver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protobuf-parse/src/pure/convert/option_resolver.rs b/protobuf-parse/src/pure/convert/option_resolver.rs index 37e153499..fcd270283 100644 --- a/protobuf-parse/src/pure/convert/option_resolver.rs +++ b/protobuf-parse/src/pure/convert/option_resolver.rs @@ -90,7 +90,7 @@ impl LookupScope2 { match self.messages().iter().find(|m| m.name() == name.as_str()) { Some(m) => { let mut path = self.current_path(); - path.push_simple(name.clone()); + path.push_simple(name); Some(LookupScope2::Message(m.clone(), path)) } None => None,