From 6df57ec2e2cf4dc956b43c05fe7c6d6006f0a80a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 7 Jan 2014 20:05:33 -0800 Subject: Remove the io::Decorator trait This is just an unnecessary trait that no one's ever going to parameterize over and it's more useful to just define the methods directly on the types themselves. The implementors of this type almost always don't want inner_mut_ref() but they're forced to define it as well. --- src/libsyntax/parse/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index c20e7f4aaec..b64f16aff59 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -338,7 +338,6 @@ mod test { use extra::serialize::Encodable; use extra; use std::io; - use std::io::Decorator; use std::io::mem::MemWriter; use std::str; use codemap::{Span, BytePos, Spanned}; @@ -356,7 +355,7 @@ mod test { let mut writer = MemWriter::new(); let mut encoder = extra::json::Encoder::new(&mut writer as &mut io::Writer); val.encode(&mut encoder); - str::from_utf8_owned(writer.inner()) + str::from_utf8_owned(writer.unwrap()) } // produce a codemap::span -- cgit 1.4.1-3-g733a5