1
Fork 0

Remove Rc's borrow method to avoid conflicts with RefCell's borrow in Rc<RefCell<T>>.

This commit is contained in:
Eduard Burtescu 2014-02-28 00:02:27 +02:00
parent 12b2607572
commit cdc18b96d6
28 changed files with 59 additions and 76 deletions

View file

@ -2291,7 +2291,7 @@ pub fn print_literal(s: &mut State, lit: &ast::Lit) -> io::IoResult<()> {
ast::LitBinary(ref arr) => {
try!(ibox(s, indent_unit));
try!(word(&mut s.s, "["));
try!(commasep_cmnt(s, Inconsistent, arr.borrow().as_slice(),
try!(commasep_cmnt(s, Inconsistent, arr.deref().as_slice(),
|s, u| word(&mut s.s, format!("{}", *u)),
|_| lit.span));
try!(word(&mut s.s, "]"));