Move an allow(non_implicitly_copyable_typarams) attribute to a smaller scope

This commit is contained in:
Brian Anderson 2012-10-10 14:37:54 -07:00
parent c019af9934
commit 34672e5b17
2 changed files with 2 additions and 2 deletions

View file

@ -134,6 +134,7 @@ fn task_from_context(cx: *JSContext) -> &Content unsafe {
cast::reinterpret_cast(&JS_GetContextPrivate(cx))
}
#[allow(non_implicitly_copyable_typarams)]
impl Content {
fn start() {
@ -202,7 +203,7 @@ impl Content {
//TODO: support extra args. requires passing a *jsval argv
JS_CallFunctionValue(self.cx.ptr, thisValue, timerData.funval,
0, null(), ptr::to_unsafe_ptr(&rval));
self.relayout(self.document.get(), &option::get(&self.doc_url));
self.relayout(self.document.get(), &self.doc_url.get());
return true;
}

View file

@ -39,7 +39,6 @@ pub mod dom {
pub mod window;
}
#[allow(non_implicitly_copyable_typarams)]
pub mod content {
pub mod content_task;
}