We don't have to copy strings anymore, since we can log slices.

This commit is contained in:
Eric Holk 2012-07-25 11:53:00 -07:00
parent 4a1c8cc2ec
commit fa0880712f

View file

@ -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, // Check if the given css file existed, if it does, parse it,
// otherwise just send an eof. // otherwise just send an eof.
if file_try.is_ok() { if file_try.is_ok() {
#debug["Lexing css sheet %s", copy filename]; #debug["Lexing css sheet %s", filename];
let file_data = file_try.get(); let file_data = file_try.get();
lex_css_from_bytes(file_data, result_chan); lex_css_from_bytes(file_data, result_chan);
} else { } else {
#debug["Failed to open css sheet %s", copy filename]; #debug["Failed to open css sheet %s", filename];
result_chan.send(Eof); result_chan.send(Eof);
} }
}); });