Skip to content

Commit d4f05fa

Browse files
committed
fix: remove uneccesary boolean coercion for in block
1 parent 523b4aa commit d4f05fa

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "goboscript"
3-
version = "1.1.0"
3+
version = "1.2.0"
44
edition = "2021"
55

66
[dependencies]

src/main.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ mod pre_processor;
1212
mod translation_unit;
1313
mod visitor;
1414

15-
use std::{
16-
process::ExitCode,
17-
time::Instant,
18-
};
15+
use std::{process::ExitCode, time::Instant};
1916

2017
use colored::Colorize;
2118

src/visitor/transformations.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ pub fn coerce_condition(expr: &Expr) -> Option<Expr> {
285285
| BinOp::Gt
286286
| BinOp::Ge
287287
| BinOp::And
288-
| BinOp::Or,
288+
| BinOp::Or
289+
| BinOp::In,
289290
..
290291
}
291292
| Expr::Repr {

0 commit comments

Comments
 (0)