1 2 3 4 5 6 7 8 9
#![deny(warnings)] use std::io::{copy, stdin, stdout}; fn main() { let stdin_handle = stdin(); let stdout_handle = stdout(); copy(&mut stdin_handle.lock(), &mut stdout_handle.lock()).unwrap(); }