From 5cd4fc2632189d39597607636b341edaa34a830b Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sun, 29 Oct 2023 19:34:55 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20:=20ne=20plus=20d=C3=A9clarer=20?= =?UTF-8?q?=C3=A0=20chaque=20fois=20le=20vecteur=20qui=20re=C3=A7oit=20la?= =?UTF-8?q?=20commande=20pars=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d2220e6..8c9d1ab 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,6 +7,7 @@ fn main() { let mut buffer = String::new(); let mut result_bytes_read: io::Result; let mut bytes_read: usize = 1; + let mut command_vec: Vec; while bytes_read != 0 { buffer.clear(); @@ -23,7 +24,7 @@ fn main() { } else { bytes_read = result_bytes_read.unwrap(); if bytes_read != 0 { - let command_vec: Vec = parser::parse(&buffer); + command_vec = parser::parse(&buffer); println!("{:?}", command_vec); } }