feat(es/react): Add VisitMut bound to the return type of react preset (#5499)

This commit is contained in:
Alex Kirszenberg 2022-08-17 09:34:32 +01:00 committed by GitHub
parent 75704e5df8
commit 14606d9222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
#![deny(clippy::all)] #![deny(clippy::all)]
use swc_common::{chain, comments::Comments, sync::Lrc, Mark, SourceMap}; use swc_common::{chain, comments::Comments, sync::Lrc, Mark, SourceMap};
use swc_ecma_visit::Fold; use swc_ecma_visit::{Fold, VisitMut};
pub use self::{ pub use self::{
display_name::display_name, display_name::display_name,
@ -37,7 +37,7 @@ pub fn react<C>(
comments: Option<C>, comments: Option<C>,
mut options: Options, mut options: Options,
top_level_mark: Mark, top_level_mark: Mark,
) -> impl Fold ) -> impl Fold + VisitMut
where where
C: Comments + Clone, C: Comments + Clone,
{ {