Skip to content

Commit

Permalink
lint again
Browse files Browse the repository at this point in the history
  • Loading branch information
leonovk committed Jun 23, 2024
1 parent d21591a commit 52b7b89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions src/interpreter/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ fn complex_assignments_value(
}

// > a b 1
fn multiple_values(
values: Vec<&str>,
target: &HashMap<&String, ValueType>,
) -> Option<ValueType> {
fn multiple_values(values: Vec<&str>, target: &HashMap<&String, ValueType>) -> Option<ValueType> {
let index = match values[1].to_string().parse::<f64>() {
Ok(p) => p,
Err(_) => match target.get(&values[1].to_string()) {
Expand Down
2 changes: 0 additions & 2 deletions src/parser/sleep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<u64>() {
Ok(parsed) => Sleep(parsed),
Err(_e) => ErrorCode("the operation is not specified correctly".to_string()),
Expand Down

0 comments on commit 52b7b89

Please sign in to comment.