From 3a1e13c7a00cd5cc90385d1fc577a992a155bd34 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Tue, 11 Jun 2013 22:13:23 +1000 Subject: std: convert str::escape_* to methods. --- src/libsyntax/parse/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 7359448a8f2..91605db77b5 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -193,7 +193,7 @@ pub fn to_str(in: @ident_interner, t: &Token) -> ~str { } body } - LIT_STR(ref s) => { ~"\"" + str::escape_default(*ident_to_str(s)) + "\"" } + LIT_STR(ref s) => { ~"\"" + ident_to_str(s).escape_default() + "\"" } /* Name components */ IDENT(s, _) => copy *in.get(s.name), -- cgit 1.4.1-3-g733a5