Skip to content

Commit

Permalink
fix minor compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeyerho committed Jul 26, 2012
1 parent 4a1c8cc commit 4c1475d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/servo/parser/css_lexer.rs
Expand Up @@ -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);
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/servo/text/native_font/ft_native_font.rs
Expand Up @@ -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
Expand Down

0 comments on commit 4c1475d

Please sign in to comment.