From 14606d92225c67145d484f30902d798297a4ffe2 Mon Sep 17 00:00:00 2001 From: Alex Kirszenberg Date: Wed, 17 Aug 2022 09:34:32 +0100 Subject: [PATCH] feat(es/react): Add `VisitMut` bound to the return type of react preset (#5499) --- crates/swc_ecma_transforms_react/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/swc_ecma_transforms_react/src/lib.rs b/crates/swc_ecma_transforms_react/src/lib.rs index fb18667bf98..6d4b7afddcb 100644 --- a/crates/swc_ecma_transforms_react/src/lib.rs +++ b/crates/swc_ecma_transforms_react/src/lib.rs @@ -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, @@ -37,7 +37,7 @@ pub fn react( comments: Option, mut options: Options, top_level_mark: Mark, -) -> impl Fold +) -> impl Fold + VisitMut where C: Comments + Clone, {