rustc: Remove all usage of manual deref()
Favor using '*' instead
This commit is contained in:
parent
76f0b1ad1f
commit
3fb1ed0e04
27 changed files with 61 additions and 68 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue