1
Fork 0

Tweak the interface of std::io

* Reexport io::mem and io::buffered structs directly under io, make mem/buffered
  private modules
* Remove with_mem_writer
* Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered)
This commit is contained in:
Alex Crichton 2014-01-15 13:25:09 -08:00
parent 77eeddaa48
commit 295b46fc08
41 changed files with 204 additions and 180 deletions

View file

@ -21,7 +21,7 @@ use std::cast::transmute;
use std::f64;
use std::hashmap::HashMap;
use std::io;
use std::io::mem::MemWriter;
use std::io::MemWriter;
use std::num;
use std::str;
use std::to_str;
@ -1506,7 +1506,7 @@ mod tests {
}
fn with_str_writer(f: |&mut io::Writer|) -> ~str {
use std::io::mem::MemWriter;
use std::io::MemWriter;
use std::str;
let mut m = MemWriter::new();