Skip to content

Commit

Permalink
fix: scope
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 21, 2022
1 parent bab7069 commit d84cf5c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions crates/swc_css_prefixer/src/prefixer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pub fn prefixer(options: Options) -> impl VisitMut {
}
}

pub struct CrossFadeFunctionReplacerOnLegacyVariant<'a> {
struct CrossFadeFunctionReplacerOnLegacyVariant<'a> {
from: &'a str,
to: &'a str,
}
Expand Down Expand Up @@ -231,14 +231,14 @@ impl VisitMut for CrossFadeFunctionReplacerOnLegacyVariant<'_> {
}
}

pub fn replace_cross_fade_function_on_legacy_variant<N>(node: &mut N, from: &str, to: &str)
fn replace_cross_fade_function_on_legacy_variant<N>(node: &mut N, from: &str, to: &str)
where
N: for<'aa> VisitMutWith<CrossFadeFunctionReplacerOnLegacyVariant<'aa>>,
{
node.visit_mut_with(&mut CrossFadeFunctionReplacerOnLegacyVariant { from, to });
}

pub struct ImageSetFunctionReplacerOnLegacyVariant<'a> {
struct ImageSetFunctionReplacerOnLegacyVariant<'a> {
from: &'a str,
to: &'a str,
in_function: bool,
Expand Down Expand Up @@ -294,7 +294,7 @@ impl VisitMut for ImageSetFunctionReplacerOnLegacyVariant<'_> {
}
}

pub fn replace_image_set_function_on_legacy_variant<N>(node: &mut N, from: &str, to: &str)
fn replace_image_set_function_on_legacy_variant<N>(node: &mut N, from: &str, to: &str)
where
N: for<'aa> VisitMutWith<ImageSetFunctionReplacerOnLegacyVariant<'aa>>,
{
Expand All @@ -305,7 +305,7 @@ where
});
}

pub struct LinearGradientFunctionReplacerOnLegacyVariant<'a> {
struct LinearGradientFunctionReplacerOnLegacyVariant<'a> {
from: &'a str,
to: &'a str,
}
Expand Down Expand Up @@ -481,14 +481,14 @@ impl VisitMut for LinearGradientFunctionReplacerOnLegacyVariant<'_> {
}
}

pub fn replace_gradient_function_on_legacy_variant<N>(node: &mut N, from: &str, to: &str)
fn replace_gradient_function_on_legacy_variant<N>(node: &mut N, from: &str, to: &str)
where
N: for<'aa> VisitMutWith<LinearGradientFunctionReplacerOnLegacyVariant<'aa>>,
{
node.visit_mut_with(&mut LinearGradientFunctionReplacerOnLegacyVariant { from, to });
}

pub struct MediaFeatureResolutionReplacerOnLegacyVariant<'a> {
struct MediaFeatureResolutionReplacerOnLegacyVariant<'a> {
from: &'a str,
to: &'a str,
}
Expand Down Expand Up @@ -534,7 +534,7 @@ impl VisitMut for MediaFeatureResolutionReplacerOnLegacyVariant<'_> {
}
}

pub fn replace_media_feature_resolution_on_legacy_variant<N>(node: &mut N, from: &str, to: &str)
fn replace_media_feature_resolution_on_legacy_variant<N>(node: &mut N, from: &str, to: &str)
where
N: for<'aa> VisitMutWith<MediaFeatureResolutionReplacerOnLegacyVariant<'aa>>,
{
Expand Down Expand Up @@ -625,7 +625,7 @@ where
});
}

pub struct FontFaceFormatOldSyntax {}
struct FontFaceFormatOldSyntax {}

impl VisitMut for FontFaceFormatOldSyntax {
fn visit_mut_function(&mut self, n: &mut Function) {
Expand Down Expand Up @@ -665,14 +665,14 @@ impl VisitMut for FontFaceFormatOldSyntax {
}
}

pub fn font_face_format_old_syntax<N>(node: &mut N)
fn font_face_format_old_syntax<N>(node: &mut N)
where
N: VisitMutWith<FontFaceFormatOldSyntax>,
{
node.visit_mut_with(&mut FontFaceFormatOldSyntax {});
}

pub struct ClampReplacer {}
struct ClampReplacer {}

impl VisitMut for ClampReplacer {
fn visit_mut_function(&mut self, n: &mut Function) {
Expand Down Expand Up @@ -727,7 +727,7 @@ impl VisitMut for ClampReplacer {
}
}

pub fn replace_clamp<N>(node: &mut N)
fn replace_clamp<N>(node: &mut N)
where
N: VisitMutWith<ClampReplacer>,
{
Expand Down

0 comments on commit d84cf5c

Please sign in to comment.