Fix warnings

This commit is contained in:
Brian Anderson 2013-01-04 18:16:27 -08:00
parent 55a37e0f67
commit 14ff5da898
5 changed files with 7 additions and 4 deletions

View file

@ -55,6 +55,7 @@ pub impl FontContextHandle {
}
}
#[allow(non_implicitly_copyable_typarams)]
pub struct FontContext {
instance_cache: MonoCache<FontDescriptor, @Font>,
font_list: Option<FontList>, // only needed by layout
@ -63,6 +64,7 @@ pub struct FontContext {
generic_fonts: LinearMap<~str,~str>,
}
#[allow(non_implicitly_copyable_typarams)]
pub impl FontContext {
static fn new(backend: BackendType, needs_font_list: bool) -> FontContext {
let handle = FontContextHandle::new();

View file

@ -71,7 +71,7 @@ pub struct FreeTypeFontTable {
}
pub impl FreeTypeFontTable : FontTableMethods {
fn with_buffer(blk: fn&(*u8, uint)) {
fn with_buffer(_blk: fn&(*u8, uint)) {
fail
}
}

View file

@ -1,5 +1,5 @@
pub fn spawn_listener<A: Owned>(
+f: fn~(oldcomm::Port<A>)) -> oldcomm::Chan<A> {
f: fn~(oldcomm::Port<A>)) -> oldcomm::Chan<A> {
let setup_po = oldcomm::Port();
let setup_ch = oldcomm::Chan(&setup_po);
do task::spawn |move f| {

View file

@ -159,6 +159,7 @@ fn build_element_kind(tag: &str) -> ~ElementKind {
else { ~UnknownElement }
}
#[allow(non_implicitly_copyable_typarams)]
pub fn parse_html(scope: NodeScope,
url: Url,
resource_task: ResourceTask,

View file

@ -1,7 +1,7 @@
use core::task;
pub fn spawn_listener<A: Owned>(
+f: fn~(oldcomm::Port<A>)) -> oldcomm::Chan<A> {
f: fn~(oldcomm::Port<A>)) -> oldcomm::Chan<A> {
let setup_po = oldcomm::Port();
let setup_ch = oldcomm::Chan(&setup_po);
do task::spawn |move f| {
@ -14,7 +14,7 @@ pub fn spawn_listener<A: Owned>(
}
pub fn spawn_conversation<A: Owned, B: Owned>
(+f: fn~(oldcomm::Port<A>, oldcomm::Chan<B>))
(f: fn~(oldcomm::Port<A>, oldcomm::Chan<B>))
-> (oldcomm::Port<B>, oldcomm::Chan<A>) {
let from_child = oldcomm::Port();
let to_parent = oldcomm::Chan(&from_child);