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/libextra/workcache.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libextra/workcache.rs') diff --git a/src/libextra/workcache.rs b/src/libextra/workcache.rs index 19c5f6f69d8..31f5091dd5f 100644 --- a/src/libextra/workcache.rs +++ b/src/libextra/workcache.rs @@ -17,7 +17,7 @@ use arc::{Arc,RWArc}; use treemap::TreeMap; use std::str; use std::io; -use std::io::{File, Decorator}; +use std::io::File; use std::io::mem::MemWriter; /** @@ -261,7 +261,7 @@ fn json_encode<'a, T:Encodable>>(t: &T) -> ~str { let mut writer = MemWriter::new(); let mut encoder = json::Encoder::new(&mut writer as &mut io::Writer); t.encode(&mut encoder); - str::from_utf8_owned(writer.inner()) + str::from_utf8_owned(writer.unwrap()) } // FIXME(#5121) -- cgit 1.4.1-3-g733a5