From fb68623acbf3122cddae2130240f0e702a003dbb Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Fri, 23 Jun 2023 17:09:08 +0200 Subject: [PATCH] fix: fixed warning on flush() --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3f49050..4f132f1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -83,7 +83,7 @@ fn main() { let network = all_networks.get(input.trim().parse::().unwrap()).expect("Given number does not reference a network"); let mut password = String::new(); print!("Now enter the password for the selected wifi '{}': ", network.ssid); - std::io::stdout().flush(); + std::io::stdout().flush().unwrap(); std::io::stdin().read_line(&mut password).unwrap(); let result = connect_to_network(&network, password.trim()); if result.is_ok() {