Skip to content

Commit f203826

Browse files
author
梶塚太智
committed
Update main.rs
format source code
1 parent 91e38a5 commit f203826

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/main.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -920,12 +920,10 @@ impl Executor {
920920
}
921921

922922
// Is string include only number
923-
"only-number" => {
924-
match self.pop_stack().get_string().trim().parse::<f64>() {
925-
Ok(_) => self.stack.push(Type::Bool(true)),
926-
Err(_) => self.stack.push(Type::Bool(false))
927-
}
928-
}
923+
"only-number" => match self.pop_stack().get_string().trim().parse::<f64>() {
924+
Ok(_) => self.stack.push(Type::Bool(true)),
925+
Err(_) => self.stack.push(Type::Bool(false)),
926+
},
929927

930928
// Get memory information
931929
"mem" => {

0 commit comments

Comments
 (0)