Skip to content

Commit

Permalink
Replace
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 5, 2024
1 parent 1bdfbb5 commit 88423be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/swc_visit_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3104,8 +3104,8 @@ fn create_method_body(mode: Mode, ty: &Type) -> Block {
}

match mode {
Mode::Fold { .. } => q!(({ return n })).parse(),
Mode::VisitAll | Mode::Visit { .. } | Mode::VisitMut { .. } => q!(({})).parse(),
Mode::Fold { .. } => parse_quote!(return n),
Mode::VisitAll | Mode::Visit { .. } | Mode::VisitMut { .. } => parse_quote!({}),
}
}
Type::Ptr(_) => unimplemented!("type: pointer"),
Expand Down

0 comments on commit 88423be

Please sign in to comment.