mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
fix minor compile errors
This commit is contained in:
parent
4a1c8cc2ec
commit
4c1475ddfb
2 changed files with 3 additions and 3 deletions
|
@ -263,11 +263,11 @@ fn spawn_css_lexer_from_file(-filename: ~str) -> port<Token> {
|
|||
// Check if the given css file existed, if it does, parse it,
|
||||
// otherwise just send an eof.
|
||||
if file_try.is_ok() {
|
||||
#debug["Lexing css sheet %s", copy filename];
|
||||
#debug["Lexing css sheet %?", copy filename];
|
||||
let file_data = file_try.get();
|
||||
lex_css_from_bytes(file_data, result_chan);
|
||||
} else {
|
||||
#debug["Failed to open css sheet %s", copy filename];
|
||||
#debug["Failed to open css sheet %?", copy filename];
|
||||
result_chan.send(Eof);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -68,7 +68,7 @@ class FreeTypeNativeFont/& {
|
|||
fn create(lib: FT_Library, buf: &~[u8]) -> result<FreeTypeNativeFont, ()> {
|
||||
assert lib.is_not_null();
|
||||
let face: FT_Face = null();
|
||||
ret vec_as_buf(*buf, |cbuf| {
|
||||
ret vec_as_buf(*buf, |cbuf, len| {
|
||||
if FT_New_Memory_Face(lib, cbuf, (*buf).len() as FT_Long,
|
||||
0 as FT_Long, addr_of(face)).succeeded() {
|
||||
// FIXME: These values are placeholders
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue