Skip to content

Commit

Permalink
We don't have to copy strings anymore, since we can log slices.
Browse files Browse the repository at this point in the history
  • Loading branch information
eholk committed Jul 25, 2012
1 parent 4a1c8cc commit fa08807
Showing 1 changed file with 2 additions and 2 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 %s", 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 %s", filename];
result_chan.send(Eof);
}
});
Expand Down

0 comments on commit fa08807

Please sign in to comment.