Skip to content

Commit

Permalink
Refactor: replace String with str
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinyaigeek committed Nov 21, 2021
1 parent 6351e01 commit 1ed2c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/swc_ecma_transforms_react/src/jsx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ where
}

if !use_create_element
&& i.sym == String::from("__source")
&& *i.sym == *"__source"
&& self.development
{
if __source.is_some() {
Expand All @@ -515,7 +515,7 @@ where
}

if !use_create_element
&& i.sym == String::from("__self")
&& *i.sym == *"__self"
&& self.development
{
if __self.is_some() {
Expand Down

0 comments on commit 1ed2c7b

Please sign in to comment.