Add Ident::as_str helper

This commit is contained in:
Vadim Petrochenkov
2018-05-26 15:12:38 +03:00
parent 189c0a1297
commit 1e4269cb83
25 changed files with 50 additions and 46 deletions

View File

@@ -166,7 +166,7 @@ fn parse_args(ecx: &mut ExtCtxt,
return None;
}
};
let name: &str = &ident.name.as_str();
let name: &str = &ident.as_str();
panictry!(p.expect(&token::Eq));
let e = panictry!(p.parse_expr());