Skip to content

Commit

Permalink
chore(frame): fix inefficient name clone on navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed May 28, 2024
1 parent 3d78fa1 commit 010208d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl Frame {
}

fn navigated(&mut self, frame: &CdpFrame) {
self.name = frame.name.clone();
self.name.clone_from(&frame.name);
let url = if let Some(ref fragment) = frame.url_fragment {
format!("{}{fragment}", frame.url)
} else {
Expand Down

0 comments on commit 010208d

Please sign in to comment.