mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy fixes regarding clone_from (#32482)
This commit is contained in:
parent
fd472ebd0e
commit
0a641816bf
12 changed files with 35 additions and 19 deletions
|
@ -348,7 +348,7 @@ impl BrowsingContextActor {
|
|||
}
|
||||
*self.url.borrow_mut() = url.as_str().to_owned();
|
||||
if let Some(ref t) = title {
|
||||
*self.title.borrow_mut() = t.clone();
|
||||
self.title.borrow_mut().clone_from(t);
|
||||
}
|
||||
|
||||
let msg = TabNavigated {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue