Skip to content

Commit

Permalink
cleaning code
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Mar 2, 2024
1 parent e5b6545 commit cff54b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/jsx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ fn create_vnode_args(
Box::new(Expr::Lit(Lit::Num(Number {
span: DUMMY_SP,
raw: None,
value: (child_flags) as f64,
value: child_flags as f64,
})))
.as_arg(),
),
Expand Down Expand Up @@ -1270,7 +1270,7 @@ fn create_fragment_vnode_args(
Box::new(Expr::Lit(Lit::Num(Number {
span: DUMMY_SP,
raw: None,
value: (child_flags) as f64,
value: child_flags as f64,
})))
.as_arg(),
),
Expand Down
2 changes: 1 addition & 1 deletion src/refresh/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl Visit for UsedInJsx {
ident.sym.as_ref(),
"createElement" | "jsx" | "jsxDEV" | "jsxs"
) {
if let Some(ExprOrSpread { expr, .. }) = n.args.get(0) {
if let Some(ExprOrSpread { expr, .. }) = n.args.first() {
if let Expr::Ident(ident) = expr.as_ref() {
self.0.insert(ident.to_id());
}
Expand Down

0 comments on commit cff54b4

Please sign in to comment.