mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Fix warnings
This commit is contained in:
parent
55a37e0f67
commit
14ff5da898
5 changed files with 7 additions and 4 deletions
|
@ -55,6 +55,7 @@ pub impl FontContextHandle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(non_implicitly_copyable_typarams)]
|
||||||
pub struct FontContext {
|
pub struct FontContext {
|
||||||
instance_cache: MonoCache<FontDescriptor, @Font>,
|
instance_cache: MonoCache<FontDescriptor, @Font>,
|
||||||
font_list: Option<FontList>, // only needed by layout
|
font_list: Option<FontList>, // only needed by layout
|
||||||
|
@ -63,6 +64,7 @@ pub struct FontContext {
|
||||||
generic_fonts: LinearMap<~str,~str>,
|
generic_fonts: LinearMap<~str,~str>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(non_implicitly_copyable_typarams)]
|
||||||
pub impl FontContext {
|
pub impl FontContext {
|
||||||
static fn new(backend: BackendType, needs_font_list: bool) -> FontContext {
|
static fn new(backend: BackendType, needs_font_list: bool) -> FontContext {
|
||||||
let handle = FontContextHandle::new();
|
let handle = FontContextHandle::new();
|
||||||
|
|
|
@ -71,7 +71,7 @@ pub struct FreeTypeFontTable {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub impl FreeTypeFontTable : FontTableMethods {
|
pub impl FreeTypeFontTable : FontTableMethods {
|
||||||
fn with_buffer(blk: fn&(*u8, uint)) {
|
fn with_buffer(_blk: fn&(*u8, uint)) {
|
||||||
fail
|
fail
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
pub fn spawn_listener<A: Owned>(
|
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_po = oldcomm::Port();
|
||||||
let setup_ch = oldcomm::Chan(&setup_po);
|
let setup_ch = oldcomm::Chan(&setup_po);
|
||||||
do task::spawn |move f| {
|
do task::spawn |move f| {
|
||||||
|
|
|
@ -159,6 +159,7 @@ fn build_element_kind(tag: &str) -> ~ElementKind {
|
||||||
else { ~UnknownElement }
|
else { ~UnknownElement }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(non_implicitly_copyable_typarams)]
|
||||||
pub fn parse_html(scope: NodeScope,
|
pub fn parse_html(scope: NodeScope,
|
||||||
url: Url,
|
url: Url,
|
||||||
resource_task: ResourceTask,
|
resource_task: ResourceTask,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use core::task;
|
use core::task;
|
||||||
|
|
||||||
pub fn spawn_listener<A: Owned>(
|
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_po = oldcomm::Port();
|
||||||
let setup_ch = oldcomm::Chan(&setup_po);
|
let setup_ch = oldcomm::Chan(&setup_po);
|
||||||
do task::spawn |move f| {
|
do task::spawn |move f| {
|
||||||
|
@ -14,7 +14,7 @@ pub fn spawn_listener<A: Owned>(
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn spawn_conversation<A: Owned, B: 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>) {
|
-> (oldcomm::Port<B>, oldcomm::Chan<A>) {
|
||||||
let from_child = oldcomm::Port();
|
let from_child = oldcomm::Port();
|
||||||
let to_parent = oldcomm::Chan(&from_child);
|
let to_parent = oldcomm::Chan(&from_child);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue