]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/print/pp.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / libsyntax / print / pp.rs
index 6cd72cb58f1f7b7685dca81209e87242cd76a864..21215748fb43848839201ddaa6ea87dba5bd45e0 100644 (file)
@@ -112,10 +112,10 @@ pub fn is_hardbreak_tok(&self) -> bool {
 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()
     }
 }