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
|
@ -954,7 +954,9 @@ impl HTMLImageElement {
|
|||
};
|
||||
|
||||
// Step 5
|
||||
*self.last_selected_source.borrow_mut() = selected_source.clone();
|
||||
self.last_selected_source
|
||||
.borrow_mut()
|
||||
.clone_from(&selected_source);
|
||||
|
||||
// Step 6, check the list of available images
|
||||
if let Some(src) = selected_source {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue