Use .. for (_).

This commit is contained in:
Stephen Chung
2022-02-08 09:46:14 +08:00
parent 97a8fd3d5b
commit 7686ca619a
24 changed files with 155 additions and 149 deletions

View File

@@ -323,7 +323,7 @@ impl Engine {
let result = match stmt {
// No-op
Stmt::Noop(_) => Ok(Dynamic::UNIT),
Stmt::Noop(..) => Ok(Dynamic::UNIT),
// Expression as statement
Stmt::Expr(expr) => self
@@ -483,7 +483,7 @@ impl Engine {
}
// Loop
Stmt::While(Expr::Unit(_), body, ..) => loop {
Stmt::While(Expr::Unit(..), body, ..) => loop {
if !body.is_empty() {
match self
.eval_stmt_block(scope, global, state, lib, this_ptr, body, true, level)