Skip to content

Commit 1d43f81

Browse files
committed
fixup: Box
1 parent e89cd31 commit 1d43f81

File tree

1 file changed

+1
-1
lines changed
  • crates/swc_ecma_codegen/src

1 file changed

+1
-1
lines changed

crates/swc_ecma_codegen/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl<N: Node> Node for Box<N> {
100100
W: WriteJs,
101101
S: SourceMapper + SourceMapperExt,
102102
{
103-
Box::new((**self).with_new_span(emitter))
103+
(**self).with_new_span(emitter).map(Box::new)
104104
}
105105
}
106106
pub struct Emitter<'a, W, S>

0 commit comments

Comments
 (0)