Remove unnecessary allocations flagged by lint

This commit is contained in:
Seo Sanghyeon 2013-05-24 01:09:11 +09:00
parent 363e672736
commit 8f80323f09
40 changed files with 161 additions and 161 deletions

View file

@ -1996,7 +1996,7 @@ pub fn print_literal(s: @ps, lit: @ast::lit) {
match lit.node {
ast::lit_str(st) => print_string(s, *st),
ast::lit_int(ch, ast::ty_char) => {
word(s.s, ~"'" + char::escape_default(ch as char) + ~"'");
word(s.s, ~"'" + char::escape_default(ch as char) + "'");
}
ast::lit_int(i, t) => {
if i < 0_i64 {