From ffe60ea02704c0bd4545a194bff3f2feafd0133c Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Fri, 9 Aug 2013 13:41:10 -0700 Subject: Trait changes, and eliminate 'copy' --- src/components/script/script_task.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/script/script_task.rs') diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 3386f058b08..4d6b5f2bda2 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -266,7 +266,7 @@ impl Page { // Send new document and relevant styles to layout. let reflow = ~Reflow { document_root: do frame.document.with_base |doc| { doc.root }, - url: copy self.url.get_ref().first(), + url: self.url.get_ref().first().clone(), goal: goal, window_size: self.window_size.get(), script_chan: script_chan, @@ -498,7 +498,7 @@ impl ScriptTask { js_info.js_compartment.define_functions(debug_fns); js_info.js_context.evaluate_script(js_info.js_compartment.global_obj, bytes, - copy url.path, + url.path.clone(), 1); } } -- cgit v1.2.3