1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
extern crate stdshout; use std::io; use stdshout::Stdshout; fn main() { let stdin = io::stdin(); let mut stdin = stdin.lock(); let stdout = io::stdout(); let mut stdout = Stdshout::new(stdout.lock()); // Silently drop write errors let _ = io::copy(&mut stdin, &mut stdout); }