Skip to content

Commit

Permalink
Mute warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Oct 2, 2023
1 parent 3bef9ad commit 7d2e08f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protobuf-parse/src/protobuf_rel_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7d2e08f

Please sign in to comment.