Avoid some clones.

This commit is contained in:
Ms2ger 2016-04-29 13:33:22 +02:00
parent 78ae9a5da0
commit 703d018f23
5 changed files with 13 additions and 17 deletions

View file

@ -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 {