Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VisitMut bound to React preset return type #5499

Merged
merged 5 commits into from
Aug 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/swc_ecma_transforms_react/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(clippy::all)]

use swc_common::{chain, comments::Comments, sync::Lrc, Mark, SourceMap};
use swc_ecma_visit::Fold;
use swc_ecma_visit::{Fold, VisitMut};

pub use self::{
display_name::display_name,
Expand Down Expand Up @@ -37,7 +37,7 @@ pub fn react<C>(
comments: Option<C>,
mut options: Options,
top_level_mark: Mark,
) -> impl Fold
) -> impl Fold + VisitMut
where
C: Comments + Clone,
{
Expand Down