Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix minor compile errors

  • Loading branch information...
commit 4c1475ddfb7fe9619e82cf93380961513b5a8ea0 1 parent 4a1c8cc
@mmeyerho mmeyerho authored
View
4 src/servo/parser/css_lexer.rs
@@ -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);
}
});
View
2  src/servo/text/native_font/ft_native_font.rs
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.