errors are fixed
This commit is contained in:
parent
e22f4fba92
commit
782ba40fd3
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ impl<'a> Pattern<'a> for Value {
|
|||
fn parse(args: Vec<String>) -> Result<Self, ParseError> {
|
||||
let param1 = args[1].parse::<u8>();
|
||||
let param2 = args[2].parse::<u8>();
|
||||
let param3 = args[2].parse::<u8>();
|
||||
let param3 = args[3].parse::<u8>();
|
||||
if param1.is_ok() && param2.is_ok() && param3.is_ok() {
|
||||
Ok(Value{
|
||||
r: Some(param1.unwrap()),
|
||||
|
|
Loading…
Reference in a new issue