diff options
| author | Richo Healey <richo@psych0tik.net> | 2014-04-15 18:17:48 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-04-18 17:25:34 -0700 |
| commit | 919889a1d688a6bbe2edac8705f048f06b1b455c (patch) | |
| tree | 322a69fa39bdaf37bbfffc84020acbd4c87871d0 /src/libsyntax/print/pp.rs | |
| parent | b75683cadf6c4c55360202cd6a0106be80532451 (diff) | |
| download | rust-919889a1d688a6bbe2edac8705f048f06b1b455c.tar.gz rust-919889a1d688a6bbe2edac8705f048f06b1b455c.zip | |
Replace all ~"" with "".to_owned()
Diffstat (limited to 'src/libsyntax/print/pp.rs')
| -rw-r--r-- | src/libsyntax/print/pp.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/print/pp.rs b/src/libsyntax/print/pp.rs index 6cd72cb58f1..21215748fb4 100644 --- a/src/libsyntax/print/pp.rs +++ b/src/libsyntax/print/pp.rs @@ -112,10 +112,10 @@ impl Token { pub fn tok_str(t: Token) -> ~str { match t { String(s, len) => return format!("STR({},{})", s, len), - Break(_) => return ~"BREAK", - Begin(_) => return ~"BEGIN", - End => return ~"END", - Eof => return ~"EOF" + Break(_) => return "BREAK".to_owned(), + Begin(_) => return "BEGIN".to_owned(), + End => return "END".to_owned(), + Eof => return "EOF".to_owned() } } |
