diff --git a/single_file_tests/input.rs b/single_file_tests/input.rs index 90b7c5a..9f1daef 100644 --- a/single_file_tests/input.rs +++ b/single_file_tests/input.rs @@ -1,9 +1,9 @@ -use std::{ io, error::Error, }; +use std::{ io, io::Write, error::Error, }; fn main() -> Result<(), Box> { let mut input = String::new(); - println!("Please input: "); - // io::stdout().flush().ok(); + print!("Please input: "); + io::stdout().flush().ok(); io::stdin().read_line(&mut input)?; println!("You typed: {}", input.trim());