Skip to content
Snippets Groups Projects
Commit 4c62268c authored by Michael Gattozzi's avatar Michael Gattozzi
Browse files

Suppressed unused variable. It's unused considering read line stores the result into a buffer

parent d9be91ad
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,8 @@ use command::*;
pub fn repl() {
let mut input = String::new();
match io::stdin().read_line(&mut input) {
Ok(n) => {
let out_wrap = run(input.trim().split_whitespace().collect::<Vec<&str>>());
Ok(_) => {
let out_wrap = run(input.trim().split_whitespace().collect::<Vec<&str>>().as_slice());
if out_wrap.is_some() {
let out = out_wrap.unwrap();
if out.stdout.is_empty() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment