Skip to content

Commit b8ca72b

Browse files
autofix-ci[bot]Dunqing
authored andcommitted
[autofix.ci] apply automated fixes
1 parent 054798f commit b8ca72b

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

tasks/benchmark/benches/codegen.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@ fn bench_codegen(criterion: &mut Criterion) {
1919
assert!(parser_ret.errors.is_empty());
2020
let mut program = parser_ret.program;
2121

22-
let scoping = SemanticBuilder::new()
23-
.with_enum_eval(true)
24-
.build(&program)
25-
.semantic
26-
.into_scoping();
22+
let scoping =
23+
SemanticBuilder::new().with_enum_eval(true).build(&program).semantic.into_scoping();
2724

2825
let transform_options = TransformOptions::enable_all();
2926
let transformer_ret =

tasks/track_memory_allocations/src/lib.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ pub fn run() -> Result<(), io::Error> {
153153
assert!(parsed.errors.is_empty());
154154

155155
// Transform TypeScript to ESNext before minifying (minifier only works on esnext)
156-
let scoping = SemanticBuilder::new().with_enum_eval(true).build(&parsed.program).semantic.into_scoping();
156+
let scoping = SemanticBuilder::new()
157+
.with_enum_eval(true)
158+
.build(&parsed.program)
159+
.semantic
160+
.into_scoping();
157161
let transform_options = TransformOptions::from_target("esnext").unwrap();
158162
let _ =
159163
Transformer::new(&allocator, std::path::Path::new(&file.file_name), &transform_options)
@@ -194,7 +198,11 @@ pub fn run() -> Result<(), io::Error> {
194198
));
195199

196200
let (scoping, semantic_stats) = record_stats_in(&allocator, || {
197-
SemanticBuilder::new().with_enum_eval(true).build(&parsed.program).semantic.into_scoping()
201+
SemanticBuilder::new()
202+
.with_enum_eval(true)
203+
.build(&parsed.program)
204+
.semantic
205+
.into_scoping()
198206
});
199207

200208
semantic_out.push_str(&format_table_row(

0 commit comments

Comments
 (0)