Skip to content

Commit

Permalink
chore: simplify string casting
Browse files Browse the repository at this point in the history
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
  • Loading branch information
marvinhagemeister and bartlomieju committed Oct 23, 2023
1 parent 953ef58 commit 1c95f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transpiling/jsx_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ fn is_serializable(opening: &JSXOpeningElement) -> bool {
fn string_lit_expr(str: String) -> Expr {
Expr::Lit(Lit::Str(Str {
span: DUMMY_SP,
value: str.to_string().as_str().into(),
value: str.as_str().into(),
raw: None,
}))
}
Expand Down

0 comments on commit 1c95f9a

Please sign in to comment.