Add flush function.
This commit is contained in:
parent
23fbe39408
commit
1136e65f0d
@ -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();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user