libsyntax: change binop_to_str to be pure

This commit is contained in:
Erick Tryzelaar 2013-02-24 17:02:04 -08:00
parent de6d9f66b5
commit 375c298297

View File

@ -115,7 +115,7 @@ pub enum nonterminal {
nt_matchers(~[ast::matcher]) nt_matchers(~[ast::matcher])
} }
pub fn binop_to_str(o: binop) -> ~str { pub pure fn binop_to_str(o: binop) -> ~str {
match o { match o {
PLUS => ~"+", PLUS => ~"+",
MINUS => ~"-", MINUS => ~"-",