Move flush back to common.

This commit is contained in:
Gav Wood 2016-01-15 14:42:16 +01:00
parent df151ab92c
commit 34b516b8b0
2 changed files with 5 additions and 5 deletions

View File

@ -34,3 +34,8 @@ macro_rules! xx {
From::from(From::from($x)) From::from(From::from($x))
} }
} }
pub fn flush(s: String) {
::std::io::stdout().write(s.as_bytes()).unwrap();
::std::io::stdout().flush().unwrap();
}

View File

@ -27,8 +27,3 @@ pub use rustc_serialize::hex::{FromHex, FromHexError};
pub use heapsize::HeapSizeOf; pub use heapsize::HeapSizeOf;
pub use itertools::Itertools; pub use itertools::Itertools;
pub fn flush(s: String) {
::std::io::stdout().write(s.as_bytes()).unwrap();
::std::io::stdout().flush().unwrap();
}