diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-01-07 20:05:33 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-01-08 23:42:28 -0800 |
| commit | 6df57ec2e2cf4dc956b43c05fe7c6d6006f0a80a (patch) | |
| tree | 6e8d71184b32f697f108aed6198b9e44f5982e82 /src/libstd/fmt | |
| parent | 7613b15fdbbb9bf770a2c731f4135886b0ff3cf0 (diff) | |
| download | rust-6df57ec2e2cf4dc956b43c05fe7c6d6006f0a80a.tar.gz rust-6df57ec2e2cf4dc956b43c05fe7c6d6006f0a80a.zip | |
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.
Diffstat (limited to 'src/libstd/fmt')
| -rw-r--r-- | src/libstd/fmt/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/fmt/mod.rs b/src/libstd/fmt/mod.rs index 53eaf17c7f8..8de406f306f 100644 --- a/src/libstd/fmt/mod.rs +++ b/src/libstd/fmt/mod.rs @@ -470,7 +470,6 @@ use prelude::*; use cast; use char::Char; -use io::Decorator; use io::mem::MemWriter; use io; use str; @@ -692,7 +691,7 @@ pub fn format(args: &Arguments) -> ~str { pub unsafe fn format_unsafe(fmt: &[rt::Piece], args: &[Argument]) -> ~str { let mut output = MemWriter::new(); write_unsafe(&mut output as &mut io::Writer, fmt, args); - return str::from_utf8_owned(output.inner()); + return str::from_utf8_owned(output.unwrap()); } impl<'a> Formatter<'a> { |
