mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
We don't have to copy strings anymore, since we can log slices.
This commit is contained in:
parent
4a1c8cc2ec
commit
fa0880712f
1 changed files with 2 additions and 2 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,
|
// 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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue