mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Avoid some clones.
This commit is contained in:
parent
78ae9a5da0
commit
703d018f23
5 changed files with 13 additions and 17 deletions
|
@ -1344,7 +1344,7 @@ impl Document {
|
|||
// The parser might need the loader, so restrict the lifetime of the borrow.
|
||||
{
|
||||
let mut loader = self.loader.borrow_mut();
|
||||
loader.finish_load(load.clone());
|
||||
loader.finish_load(&load);
|
||||
}
|
||||
|
||||
if let LoadType::Script(_) = load {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue