rustc: Remove all usage of manual deref()

Favor using '*' instead
This commit is contained in:
Alex Crichton 2014-03-20 22:10:44 -07:00
parent 76f0b1ad1f
commit 3fb1ed0e04
27 changed files with 61 additions and 68 deletions

View file

@ -1181,7 +1181,7 @@ impl ToSource for syntax::codemap::Span {
fn lit_to_str(lit: &ast::Lit) -> ~str {
match lit.node {
ast::LitStr(ref st, _) => st.get().to_owned(),
ast::LitBinary(ref data) => format!("{:?}", data.deref().as_slice()),
ast::LitBinary(ref data) => format!("{:?}", data.as_slice()),
ast::LitChar(c) => ~"'" + std::char::from_u32(c).unwrap().to_str() + "'",
ast::LitInt(i, _t) => i.to_str(),
ast::LitUint(u, _t) => u.to_str(),