From 5961309babe78c8addc57ca6694f49e845f357fa Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 28 Aug 2024 12:36:07 +0200 Subject: [PATCH] style(main): remove unused result warnings in main.rs --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6085b11..2d7fefa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use std::{env, io::{stdin, stdout, Write}, path::Path, process::{Child, Command, fn main(){ loop { print!("> "); - stdout().flush(); + let _ = stdout().flush(); let mut input = String::new(); stdin().read_line(&mut input).unwrap(); @@ -66,7 +66,7 @@ fn main(){ if let Some(mut final_command) = previous_command { // block until the final command has finished - final_command.wait(); + let _ = final_command.wait(); } }