Move flush back to common.
This commit is contained in:
parent
df151ab92c
commit
34b516b8b0
@ -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();
|
||||||
|
}
|
||||||
|
@ -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();
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user