Skip to content

Commit 42df149

Browse files
committed
refactor(swc/common): use default for string
1 parent 4a7040f commit 42df149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/swc_common/src/comments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ impl Default for Comment {
553553
Comment {
554554
kind: CommentKind::Line,
555555
span: DUMMY_SP,
556-
text: "".into(),
556+
text: Default::default(),
557557
}
558558
}
559559
}

0 commit comments

Comments
 (0)