diff --git a/src/interpreter/create.rs b/src/interpreter/create.rs index f367129..f915e0d 100644 --- a/src/interpreter/create.rs +++ b/src/interpreter/create.rs @@ -40,10 +40,7 @@ fn complex_assignments_value( } // > a b 1 -fn multiple_values( - values: Vec<&str>, - target: &HashMap<&String, ValueType>, -) -> Option { +fn multiple_values(values: Vec<&str>, target: &HashMap<&String, ValueType>) -> Option { let index = match values[1].to_string().parse::() { Ok(p) => p, Err(_) => match target.get(&values[1].to_string()) { diff --git a/src/parser/sleep.rs b/src/parser/sleep.rs index ee7220f..89778fe 100644 --- a/src/parser/sleep.rs +++ b/src/parser/sleep.rs @@ -6,8 +6,6 @@ pub fn sleep(data: Vec<&str>) -> OpCode { return ErrorCode("the operation is not specified correctly".to_string()); } - - match data[1].to_string().parse::() { Ok(parsed) => Sleep(parsed), Err(_e) => ErrorCode("the operation is not specified correctly".to_string()),