diff --git a/apps/oxlint/src/lint.rs b/apps/oxlint/src/lint.rs index dc647a441504d..6ca57564fea31 100644 --- a/apps/oxlint/src/lint.rs +++ b/apps/oxlint/src/lint.rs @@ -102,7 +102,8 @@ impl Runner for LintRunner { .copied() .collect::>(); - let config_search_result = Self::find_oxlint_config(&self.cwd, &basic_options.config); + let config_search_result = + Self::find_oxlint_config(&self.cwd, basic_options.config.as_ref()); if let Err(err) = config_search_result { return err; @@ -251,7 +252,7 @@ impl LintRunner { // when config is provided, but not found, an CliRunResult is returned, else the oxlintrc config file is returned // when no config is provided, it will search for the default file names in the current working directory // when no file is found, the default configuration is returned - fn find_oxlint_config(cwd: &Path, config: &Option) -> Result { + fn find_oxlint_config(cwd: &Path, config: Option<&PathBuf>) -> Result { if let Some(config_path) = config { return match Oxlintrc::from_file(config_path) { Ok(config) => Ok(config), diff --git a/crates/oxc_ast/src/generated/ast_kind.rs b/crates/oxc_ast/src/generated/ast_kind.rs index 5c28eef9bffb3..7535d084c36d5 100644 --- a/crates/oxc_ast/src/generated/ast_kind.rs +++ b/crates/oxc_ast/src/generated/ast_kind.rs @@ -347,7 +347,7 @@ pub enum AstKind<'a> { JSXText(&'a JSXText<'a>), } -impl<'a> GetSpan for AstKind<'a> { +impl GetSpan for AstKind<'_> { #[allow(clippy::match_same_arms)] fn span(&self) -> Span { match self { diff --git a/crates/oxc_ast/src/generated/derive_clone_in.rs b/crates/oxc_ast/src/generated/derive_clone_in.rs index 193871da4b8e2..e51cb7b1b80ed 100644 --- a/crates/oxc_ast/src/generated/derive_clone_in.rs +++ b/crates/oxc_ast/src/generated/derive_clone_in.rs @@ -32,7 +32,7 @@ impl<'alloc> CloneIn<'alloc> for NullLiteral { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for NumericLiteral<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for NumericLiteral<'_> { type Cloned = NumericLiteral<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { NumericLiteral { @@ -44,7 +44,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for NumericLiteral<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for StringLiteral<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for StringLiteral<'_> { type Cloned = StringLiteral<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { StringLiteral { @@ -55,7 +55,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for StringLiteral<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BigIntLiteral<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for BigIntLiteral<'_> { type Cloned = BigIntLiteral<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { BigIntLiteral { @@ -66,7 +66,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BigIntLiteral<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for RegExpLiteral<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for RegExpLiteral<'_> { type Cloned = RegExpLiteral<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { RegExpLiteral { @@ -77,7 +77,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for RegExpLiteral<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for RegExp<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for RegExp<'_> { type Cloned = RegExp<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { RegExp { @@ -87,7 +87,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for RegExp<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for RegExpPattern<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for RegExpPattern<'_> { type Cloned = RegExpPattern<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -98,7 +98,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for RegExpPattern<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Program<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Program<'_> { type Cloned = Program<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { Program { @@ -114,7 +114,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Program<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Expression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Expression<'_> { type Cloned = Expression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -228,7 +228,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Expression<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for IdentifierName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for IdentifierName<'_> { type Cloned = IdentifierName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { IdentifierName { @@ -238,7 +238,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for IdentifierName<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for IdentifierReference<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for IdentifierReference<'_> { type Cloned = IdentifierReference<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { IdentifierReference { @@ -249,7 +249,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for IdentifierReference<'old_al } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BindingIdentifier<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for BindingIdentifier<'_> { type Cloned = BindingIdentifier<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { BindingIdentifier { @@ -260,7 +260,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BindingIdentifier<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for LabelIdentifier<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for LabelIdentifier<'_> { type Cloned = LabelIdentifier<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { LabelIdentifier { @@ -277,7 +277,7 @@ impl<'alloc> CloneIn<'alloc> for ThisExpression { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ArrayExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ArrayExpression<'_> { type Cloned = ArrayExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ArrayExpression { @@ -288,7 +288,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ArrayExpression<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ArrayExpressionElement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ArrayExpressionElement<'_> { type Cloned = ArrayExpressionElement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -431,7 +431,7 @@ impl<'alloc> CloneIn<'alloc> for Elision { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ObjectExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ObjectExpression<'_> { type Cloned = ObjectExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ObjectExpression { @@ -442,7 +442,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ObjectExpression<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ObjectPropertyKind<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ObjectPropertyKind<'_> { type Cloned = ObjectPropertyKind<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -456,7 +456,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ObjectPropertyKind<'old_all } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ObjectProperty<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ObjectProperty<'_> { type Cloned = ObjectProperty<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ObjectProperty { @@ -471,7 +471,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ObjectProperty<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for PropertyKey<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for PropertyKey<'_> { type Cloned = PropertyKey<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -602,7 +602,7 @@ impl<'alloc> CloneIn<'alloc> for PropertyKind { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TemplateLiteral<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TemplateLiteral<'_> { type Cloned = TemplateLiteral<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TemplateLiteral { @@ -613,7 +613,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TemplateLiteral<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TaggedTemplateExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TaggedTemplateExpression<'_> { type Cloned = TaggedTemplateExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TaggedTemplateExpression { @@ -625,7 +625,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TaggedTemplateExpression<'o } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TemplateElement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TemplateElement<'_> { type Cloned = TemplateElement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TemplateElement { @@ -636,7 +636,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TemplateElement<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TemplateElementValue<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TemplateElementValue<'_> { type Cloned = TemplateElementValue<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TemplateElementValue { @@ -646,7 +646,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TemplateElementValue<'old_a } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for MemberExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for MemberExpression<'_> { type Cloned = MemberExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -663,7 +663,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for MemberExpression<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ComputedMemberExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ComputedMemberExpression<'_> { type Cloned = ComputedMemberExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ComputedMemberExpression { @@ -675,7 +675,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ComputedMemberExpression<'o } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for StaticMemberExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for StaticMemberExpression<'_> { type Cloned = StaticMemberExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { StaticMemberExpression { @@ -687,7 +687,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for StaticMemberExpression<'old } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for PrivateFieldExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for PrivateFieldExpression<'_> { type Cloned = PrivateFieldExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { PrivateFieldExpression { @@ -699,7 +699,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for PrivateFieldExpression<'old } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for CallExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for CallExpression<'_> { type Cloned = CallExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { CallExpression { @@ -712,7 +712,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for CallExpression<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for NewExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for NewExpression<'_> { type Cloned = NewExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { NewExpression { @@ -724,7 +724,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for NewExpression<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for MetaProperty<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for MetaProperty<'_> { type Cloned = MetaProperty<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { MetaProperty { @@ -735,7 +735,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for MetaProperty<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for SpreadElement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for SpreadElement<'_> { type Cloned = SpreadElement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { SpreadElement { @@ -745,7 +745,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for SpreadElement<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Argument<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Argument<'_> { type Cloned = Argument<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -850,7 +850,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Argument<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for UpdateExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for UpdateExpression<'_> { type Cloned = UpdateExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { UpdateExpression { @@ -862,7 +862,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for UpdateExpression<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for UnaryExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for UnaryExpression<'_> { type Cloned = UnaryExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { UnaryExpression { @@ -873,7 +873,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for UnaryExpression<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BinaryExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for BinaryExpression<'_> { type Cloned = BinaryExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { BinaryExpression { @@ -885,7 +885,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BinaryExpression<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for PrivateInExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for PrivateInExpression<'_> { type Cloned = PrivateInExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { PrivateInExpression { @@ -897,7 +897,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for PrivateInExpression<'old_al } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for LogicalExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for LogicalExpression<'_> { type Cloned = LogicalExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { LogicalExpression { @@ -909,7 +909,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for LogicalExpression<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ConditionalExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ConditionalExpression<'_> { type Cloned = ConditionalExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ConditionalExpression { @@ -921,7 +921,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ConditionalExpression<'old_ } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for AssignmentExpression<'_> { type Cloned = AssignmentExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { AssignmentExpression { @@ -933,7 +933,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentExpression<'old_a } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTarget<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTarget<'_> { type Cloned = AssignmentTarget<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -974,7 +974,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTarget<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for SimpleAssignmentTarget<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for SimpleAssignmentTarget<'_> { type Cloned = SimpleAssignmentTarget<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -1009,7 +1009,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for SimpleAssignmentTarget<'old } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetPattern<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetPattern<'_> { type Cloned = AssignmentTargetPattern<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -1023,7 +1023,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetPattern<'ol } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ArrayAssignmentTarget<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ArrayAssignmentTarget<'_> { type Cloned = ArrayAssignmentTarget<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ArrayAssignmentTarget { @@ -1035,7 +1035,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ArrayAssignmentTarget<'old_ } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ObjectAssignmentTarget<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ObjectAssignmentTarget<'_> { type Cloned = ObjectAssignmentTarget<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ObjectAssignmentTarget { @@ -1046,7 +1046,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ObjectAssignmentTarget<'old } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetRest<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetRest<'_> { type Cloned = AssignmentTargetRest<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { AssignmentTargetRest { @@ -1056,7 +1056,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetRest<'old_a } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetMaybeDefault<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetMaybeDefault<'_> { type Cloned = AssignmentTargetMaybeDefault<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -1114,7 +1114,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetMaybeDefaul } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetWithDefault<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetWithDefault<'_> { type Cloned = AssignmentTargetWithDefault<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { AssignmentTargetWithDefault { @@ -1125,7 +1125,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetWithDefault } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetProperty<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetProperty<'_> { type Cloned = AssignmentTargetProperty<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -1143,9 +1143,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetProperty<'o } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> - for AssignmentTargetPropertyIdentifier<'old_alloc> -{ +impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetPropertyIdentifier<'_> { type Cloned = AssignmentTargetPropertyIdentifier<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { AssignmentTargetPropertyIdentifier { @@ -1156,7 +1154,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetPropertyProperty<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetPropertyProperty<'_> { type Cloned = AssignmentTargetPropertyProperty<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { AssignmentTargetPropertyProperty { @@ -1167,7 +1165,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentTargetPropertyPro } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for SequenceExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for SequenceExpression<'_> { type Cloned = SequenceExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { SequenceExpression { @@ -1184,7 +1182,7 @@ impl<'alloc> CloneIn<'alloc> for Super { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AwaitExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for AwaitExpression<'_> { type Cloned = AwaitExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { AwaitExpression { @@ -1194,7 +1192,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AwaitExpression<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ChainExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ChainExpression<'_> { type Cloned = ChainExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ChainExpression { @@ -1204,7 +1202,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ChainExpression<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ChainElement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ChainElement<'_> { type Cloned = ChainElement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -1227,7 +1225,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ChainElement<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ParenthesizedExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ParenthesizedExpression<'_> { type Cloned = ParenthesizedExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ParenthesizedExpression { @@ -1237,7 +1235,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ParenthesizedExpression<'ol } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Statement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Statement<'_> { type Cloned = Statement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -1319,7 +1317,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Statement<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Directive<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Directive<'_> { type Cloned = Directive<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { Directive { @@ -1330,7 +1328,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Directive<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Hashbang<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Hashbang<'_> { type Cloned = Hashbang<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { Hashbang { @@ -1340,7 +1338,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Hashbang<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BlockStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for BlockStatement<'_> { type Cloned = BlockStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { BlockStatement { @@ -1351,7 +1349,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BlockStatement<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Declaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Declaration<'_> { type Cloned = Declaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -1383,7 +1381,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Declaration<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for VariableDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for VariableDeclaration<'_> { type Cloned = VariableDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { VariableDeclaration { @@ -1408,7 +1406,7 @@ impl<'alloc> CloneIn<'alloc> for VariableDeclarationKind { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for VariableDeclarator<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for VariableDeclarator<'_> { type Cloned = VariableDeclarator<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { VariableDeclarator { @@ -1428,7 +1426,7 @@ impl<'alloc> CloneIn<'alloc> for EmptyStatement { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExpressionStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ExpressionStatement<'_> { type Cloned = ExpressionStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ExpressionStatement { @@ -1438,7 +1436,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExpressionStatement<'old_al } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for IfStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for IfStatement<'_> { type Cloned = IfStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { IfStatement { @@ -1450,7 +1448,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for IfStatement<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for DoWhileStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for DoWhileStatement<'_> { type Cloned = DoWhileStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { DoWhileStatement { @@ -1461,7 +1459,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for DoWhileStatement<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for WhileStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for WhileStatement<'_> { type Cloned = WhileStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { WhileStatement { @@ -1472,7 +1470,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for WhileStatement<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ForStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ForStatement<'_> { type Cloned = ForStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ForStatement { @@ -1486,7 +1484,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ForStatement<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ForStatementInit<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ForStatementInit<'_> { type Cloned = ForStatementInit<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -1617,7 +1615,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ForStatementInit<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ForInStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ForInStatement<'_> { type Cloned = ForInStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ForInStatement { @@ -1630,7 +1628,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ForInStatement<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ForStatementLeft<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ForStatementLeft<'_> { type Cloned = ForStatementLeft<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -1674,7 +1672,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ForStatementLeft<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ForOfStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ForOfStatement<'_> { type Cloned = ForOfStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ForOfStatement { @@ -1688,7 +1686,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ForOfStatement<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ContinueStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ContinueStatement<'_> { type Cloned = ContinueStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ContinueStatement { @@ -1698,7 +1696,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ContinueStatement<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BreakStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for BreakStatement<'_> { type Cloned = BreakStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { BreakStatement { @@ -1708,7 +1706,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BreakStatement<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ReturnStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ReturnStatement<'_> { type Cloned = ReturnStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ReturnStatement { @@ -1718,7 +1716,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ReturnStatement<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for WithStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for WithStatement<'_> { type Cloned = WithStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { WithStatement { @@ -1729,7 +1727,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for WithStatement<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for SwitchStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for SwitchStatement<'_> { type Cloned = SwitchStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { SwitchStatement { @@ -1741,7 +1739,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for SwitchStatement<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for SwitchCase<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for SwitchCase<'_> { type Cloned = SwitchCase<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { SwitchCase { @@ -1752,7 +1750,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for SwitchCase<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for LabeledStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for LabeledStatement<'_> { type Cloned = LabeledStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { LabeledStatement { @@ -1763,7 +1761,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for LabeledStatement<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ThrowStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ThrowStatement<'_> { type Cloned = ThrowStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ThrowStatement { @@ -1773,7 +1771,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ThrowStatement<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TryStatement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TryStatement<'_> { type Cloned = TryStatement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TryStatement { @@ -1785,7 +1783,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TryStatement<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for CatchClause<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for CatchClause<'_> { type Cloned = CatchClause<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { CatchClause { @@ -1797,7 +1795,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for CatchClause<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for CatchParameter<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for CatchParameter<'_> { type Cloned = CatchParameter<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { CatchParameter { @@ -1814,7 +1812,7 @@ impl<'alloc> CloneIn<'alloc> for DebuggerStatement { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BindingPattern<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for BindingPattern<'_> { type Cloned = BindingPattern<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { BindingPattern { @@ -1825,7 +1823,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BindingPattern<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BindingPatternKind<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for BindingPatternKind<'_> { type Cloned = BindingPatternKind<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -1845,7 +1843,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BindingPatternKind<'old_all } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentPattern<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for AssignmentPattern<'_> { type Cloned = AssignmentPattern<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { AssignmentPattern { @@ -1856,7 +1854,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AssignmentPattern<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ObjectPattern<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ObjectPattern<'_> { type Cloned = ObjectPattern<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ObjectPattern { @@ -1867,7 +1865,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ObjectPattern<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BindingProperty<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for BindingProperty<'_> { type Cloned = BindingProperty<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { BindingProperty { @@ -1880,7 +1878,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BindingProperty<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ArrayPattern<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ArrayPattern<'_> { type Cloned = ArrayPattern<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ArrayPattern { @@ -1891,7 +1889,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ArrayPattern<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BindingRestElement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for BindingRestElement<'_> { type Cloned = BindingRestElement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { BindingRestElement { @@ -1901,7 +1899,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for BindingRestElement<'old_all } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Function<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Function<'_> { type Cloned = Function<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { Function { @@ -1933,7 +1931,7 @@ impl<'alloc> CloneIn<'alloc> for FunctionType { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for FormalParameters<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for FormalParameters<'_> { type Cloned = FormalParameters<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { FormalParameters { @@ -1945,7 +1943,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for FormalParameters<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for FormalParameter<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for FormalParameter<'_> { type Cloned = FormalParameter<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { FormalParameter { @@ -1971,7 +1969,7 @@ impl<'alloc> CloneIn<'alloc> for FormalParameterKind { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for FunctionBody<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for FunctionBody<'_> { type Cloned = FunctionBody<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { FunctionBody { @@ -1982,7 +1980,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for FunctionBody<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ArrowFunctionExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ArrowFunctionExpression<'_> { type Cloned = ArrowFunctionExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ArrowFunctionExpression { @@ -1998,7 +1996,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ArrowFunctionExpression<'ol } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for YieldExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for YieldExpression<'_> { type Cloned = YieldExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { YieldExpression { @@ -2009,7 +2007,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for YieldExpression<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Class<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Class<'_> { type Cloned = Class<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { Class { @@ -2039,7 +2037,7 @@ impl<'alloc> CloneIn<'alloc> for ClassType { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ClassBody<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ClassBody<'_> { type Cloned = ClassBody<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ClassBody { @@ -2049,7 +2047,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ClassBody<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ClassElement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ClassElement<'_> { type Cloned = ClassElement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -2070,7 +2068,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ClassElement<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for MethodDefinition<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for MethodDefinition<'_> { type Cloned = MethodDefinition<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { MethodDefinition { @@ -2099,7 +2097,7 @@ impl<'alloc> CloneIn<'alloc> for MethodDefinitionType { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for PropertyDefinition<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for PropertyDefinition<'_> { type Cloned = PropertyDefinition<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { PropertyDefinition { @@ -2145,7 +2143,7 @@ impl<'alloc> CloneIn<'alloc> for MethodDefinitionKind { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for PrivateIdentifier<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for PrivateIdentifier<'_> { type Cloned = PrivateIdentifier<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { PrivateIdentifier { @@ -2155,7 +2153,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for PrivateIdentifier<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for StaticBlock<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for StaticBlock<'_> { type Cloned = StaticBlock<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { StaticBlock { @@ -2166,7 +2164,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for StaticBlock<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ModuleDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ModuleDeclaration<'_> { type Cloned = ModuleDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -2202,7 +2200,7 @@ impl<'alloc> CloneIn<'alloc> for AccessorPropertyType { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AccessorProperty<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for AccessorProperty<'_> { type Cloned = AccessorProperty<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { AccessorProperty { @@ -2220,7 +2218,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for AccessorProperty<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ImportExpression<'_> { type Cloned = ImportExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ImportExpression { @@ -2231,7 +2229,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportExpression<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ImportDeclaration<'_> { type Cloned = ImportDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ImportDeclaration { @@ -2244,7 +2242,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportDeclaration<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportDeclarationSpecifier<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ImportDeclarationSpecifier<'_> { type Cloned = ImportDeclarationSpecifier<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -2263,7 +2261,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportDeclarationSpecifier< } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportSpecifier<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ImportSpecifier<'_> { type Cloned = ImportSpecifier<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ImportSpecifier { @@ -2275,7 +2273,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportSpecifier<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportDefaultSpecifier<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ImportDefaultSpecifier<'_> { type Cloned = ImportDefaultSpecifier<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ImportDefaultSpecifier { @@ -2285,7 +2283,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportDefaultSpecifier<'old } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportNamespaceSpecifier<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ImportNamespaceSpecifier<'_> { type Cloned = ImportNamespaceSpecifier<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ImportNamespaceSpecifier { @@ -2295,7 +2293,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportNamespaceSpecifier<'o } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for WithClause<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for WithClause<'_> { type Cloned = WithClause<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { WithClause { @@ -2306,7 +2304,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for WithClause<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportAttribute<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ImportAttribute<'_> { type Cloned = ImportAttribute<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ImportAttribute { @@ -2317,7 +2315,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportAttribute<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportAttributeKey<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ImportAttributeKey<'_> { type Cloned = ImportAttributeKey<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -2331,7 +2329,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ImportAttributeKey<'old_all } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExportNamedDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ExportNamedDeclaration<'_> { type Cloned = ExportNamedDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ExportNamedDeclaration { @@ -2345,7 +2343,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExportNamedDeclaration<'old } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExportDefaultDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ExportDefaultDeclaration<'_> { type Cloned = ExportDefaultDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ExportDefaultDeclaration { @@ -2356,7 +2354,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExportDefaultDeclaration<'o } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExportAllDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ExportAllDeclaration<'_> { type Cloned = ExportAllDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ExportAllDeclaration { @@ -2369,7 +2367,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExportAllDeclaration<'old_a } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExportSpecifier<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ExportSpecifier<'_> { type Cloned = ExportSpecifier<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ExportSpecifier { @@ -2381,7 +2379,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExportSpecifier<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExportDefaultDeclarationKind<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ExportDefaultDeclarationKind<'_> { type Cloned = ExportDefaultDeclarationKind<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -2540,7 +2538,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ExportDefaultDeclarationKin } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ModuleExportName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ModuleExportName<'_> { type Cloned = ModuleExportName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -2557,7 +2555,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ModuleExportName<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSThisParameter<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSThisParameter<'_> { type Cloned = TSThisParameter<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSThisParameter { @@ -2568,7 +2566,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSThisParameter<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSEnumDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSEnumDeclaration<'_> { type Cloned = TSEnumDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSEnumDeclaration { @@ -2582,7 +2580,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSEnumDeclaration<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSEnumMember<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSEnumMember<'_> { type Cloned = TSEnumMember<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSEnumMember { @@ -2593,7 +2591,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSEnumMember<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSEnumMemberName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSEnumMemberName<'_> { type Cloned = TSEnumMemberName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -2603,7 +2601,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSEnumMemberName<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeAnnotation<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeAnnotation<'_> { type Cloned = TSTypeAnnotation<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTypeAnnotation { @@ -2613,7 +2611,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeAnnotation<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSLiteralType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSLiteralType<'_> { type Cloned = TSLiteralType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSLiteralType { @@ -2623,7 +2621,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSLiteralType<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSLiteral<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSLiteral<'_> { type Cloned = TSLiteral<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -2643,7 +2641,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSLiteral<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSType<'_> { type Cloned = TSType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -2719,7 +2717,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSType<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSConditionalType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSConditionalType<'_> { type Cloned = TSConditionalType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSConditionalType { @@ -2733,7 +2731,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSConditionalType<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSUnionType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSUnionType<'_> { type Cloned = TSUnionType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSUnionType { @@ -2743,7 +2741,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSUnionType<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSIntersectionType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSIntersectionType<'_> { type Cloned = TSIntersectionType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSIntersectionType { @@ -2753,7 +2751,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSIntersectionType<'old_all } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSParenthesizedType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSParenthesizedType<'_> { type Cloned = TSParenthesizedType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSParenthesizedType { @@ -2763,7 +2761,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSParenthesizedType<'old_al } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeOperator<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeOperator<'_> { type Cloned = TSTypeOperator<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTypeOperator { @@ -2785,7 +2783,7 @@ impl<'alloc> CloneIn<'alloc> for TSTypeOperatorOperator { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSArrayType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSArrayType<'_> { type Cloned = TSArrayType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSArrayType { @@ -2795,7 +2793,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSArrayType<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSIndexedAccessType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSIndexedAccessType<'_> { type Cloned = TSIndexedAccessType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSIndexedAccessType { @@ -2806,7 +2804,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSIndexedAccessType<'old_al } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTupleType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTupleType<'_> { type Cloned = TSTupleType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTupleType { @@ -2816,7 +2814,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTupleType<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSNamedTupleMember<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSNamedTupleMember<'_> { type Cloned = TSNamedTupleMember<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSNamedTupleMember { @@ -2828,7 +2826,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSNamedTupleMember<'old_all } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSOptionalType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSOptionalType<'_> { type Cloned = TSOptionalType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSOptionalType { @@ -2838,7 +2836,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSOptionalType<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSRestType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSRestType<'_> { type Cloned = TSRestType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSRestType { @@ -2848,7 +2846,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSRestType<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTupleElement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTupleElement<'_> { type Cloned = TSTupleElement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3060,7 +3058,7 @@ impl<'alloc> CloneIn<'alloc> for TSBigIntKeyword { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeReference<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeReference<'_> { type Cloned = TSTypeReference<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTypeReference { @@ -3071,7 +3069,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeReference<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeName<'_> { type Cloned = TSTypeName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3083,7 +3081,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeName<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSQualifiedName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSQualifiedName<'_> { type Cloned = TSQualifiedName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSQualifiedName { @@ -3094,7 +3092,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSQualifiedName<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeParameterInstantiation<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeParameterInstantiation<'_> { type Cloned = TSTypeParameterInstantiation<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTypeParameterInstantiation { @@ -3104,7 +3102,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeParameterInstantiatio } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeParameter<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeParameter<'_> { type Cloned = TSTypeParameter<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTypeParameter { @@ -3119,7 +3117,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeParameter<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeParameterDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeParameterDeclaration<'_> { type Cloned = TSTypeParameterDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTypeParameterDeclaration { @@ -3129,7 +3127,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeParameterDeclaration< } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeAliasDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeAliasDeclaration<'_> { type Cloned = TSTypeAliasDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTypeAliasDeclaration { @@ -3154,7 +3152,7 @@ impl<'alloc> CloneIn<'alloc> for TSAccessibility { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSClassImplements<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSClassImplements<'_> { type Cloned = TSClassImplements<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSClassImplements { @@ -3165,7 +3163,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSClassImplements<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSInterfaceDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSInterfaceDeclaration<'_> { type Cloned = TSInterfaceDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSInterfaceDeclaration { @@ -3180,7 +3178,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSInterfaceDeclaration<'old } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSInterfaceBody<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSInterfaceBody<'_> { type Cloned = TSInterfaceBody<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSInterfaceBody { @@ -3190,7 +3188,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSInterfaceBody<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSPropertySignature<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSPropertySignature<'_> { type Cloned = TSPropertySignature<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSPropertySignature { @@ -3204,7 +3202,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSPropertySignature<'old_al } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSSignature<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSSignature<'_> { type Cloned = TSSignature<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3227,7 +3225,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSSignature<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSIndexSignature<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSIndexSignature<'_> { type Cloned = TSIndexSignature<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSIndexSignature { @@ -3240,7 +3238,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSIndexSignature<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSCallSignatureDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSCallSignatureDeclaration<'_> { type Cloned = TSCallSignatureDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSCallSignatureDeclaration { @@ -3264,7 +3262,7 @@ impl<'alloc> CloneIn<'alloc> for TSMethodSignatureKind { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSMethodSignature<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSMethodSignature<'_> { type Cloned = TSMethodSignature<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSMethodSignature { @@ -3282,7 +3280,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSMethodSignature<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSConstructSignatureDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSConstructSignatureDeclaration<'_> { type Cloned = TSConstructSignatureDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSConstructSignatureDeclaration { @@ -3295,7 +3293,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSConstructSignatureDeclara } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSIndexSignatureName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSIndexSignatureName<'_> { type Cloned = TSIndexSignatureName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSIndexSignatureName { @@ -3306,7 +3304,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSIndexSignatureName<'old_a } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSInterfaceHeritage<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSInterfaceHeritage<'_> { type Cloned = TSInterfaceHeritage<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSInterfaceHeritage { @@ -3317,7 +3315,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSInterfaceHeritage<'old_al } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypePredicate<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypePredicate<'_> { type Cloned = TSTypePredicate<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTypePredicate { @@ -3329,7 +3327,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypePredicate<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypePredicateName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypePredicateName<'_> { type Cloned = TSTypePredicateName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3341,7 +3339,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypePredicateName<'old_al } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSModuleDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSModuleDeclaration<'_> { type Cloned = TSModuleDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSModuleDeclaration { @@ -3366,7 +3364,7 @@ impl<'alloc> CloneIn<'alloc> for TSModuleDeclarationKind { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSModuleDeclarationName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSModuleDeclarationName<'_> { type Cloned = TSModuleDeclarationName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3380,7 +3378,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSModuleDeclarationName<'ol } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSModuleDeclarationBody<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSModuleDeclarationBody<'_> { type Cloned = TSModuleDeclarationBody<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3394,7 +3392,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSModuleDeclarationBody<'ol } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSModuleBlock<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSModuleBlock<'_> { type Cloned = TSModuleBlock<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSModuleBlock { @@ -3405,7 +3403,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSModuleBlock<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeLiteral<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeLiteral<'_> { type Cloned = TSTypeLiteral<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTypeLiteral { @@ -3415,7 +3413,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeLiteral<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSInferType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSInferType<'_> { type Cloned = TSInferType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSInferType { @@ -3425,7 +3423,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSInferType<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeQuery<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeQuery<'_> { type Cloned = TSTypeQuery<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTypeQuery { @@ -3436,7 +3434,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeQuery<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeQueryExprName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeQueryExprName<'_> { type Cloned = TSTypeQueryExprName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3453,7 +3451,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeQueryExprName<'old_al } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSImportType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSImportType<'_> { type Cloned = TSImportType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSImportType { @@ -3467,7 +3465,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSImportType<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSImportAttributes<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSImportAttributes<'_> { type Cloned = TSImportAttributes<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSImportAttributes { @@ -3478,7 +3476,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSImportAttributes<'old_all } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSImportAttribute<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSImportAttribute<'_> { type Cloned = TSImportAttribute<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSImportAttribute { @@ -3489,7 +3487,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSImportAttribute<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSImportAttributeName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSImportAttributeName<'_> { type Cloned = TSImportAttributeName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3503,7 +3501,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSImportAttributeName<'old_ } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSFunctionType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSFunctionType<'_> { type Cloned = TSFunctionType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSFunctionType { @@ -3516,7 +3514,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSFunctionType<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSConstructorType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSConstructorType<'_> { type Cloned = TSConstructorType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSConstructorType { @@ -3529,7 +3527,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSConstructorType<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSMappedType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSMappedType<'_> { type Cloned = TSMappedType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSMappedType { @@ -3556,7 +3554,7 @@ impl<'alloc> CloneIn<'alloc> for TSMappedTypeModifierOperator { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTemplateLiteralType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTemplateLiteralType<'_> { type Cloned = TSTemplateLiteralType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTemplateLiteralType { @@ -3567,7 +3565,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTemplateLiteralType<'old_ } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSAsExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSAsExpression<'_> { type Cloned = TSAsExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSAsExpression { @@ -3578,7 +3576,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSAsExpression<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSSatisfiesExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSSatisfiesExpression<'_> { type Cloned = TSSatisfiesExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSSatisfiesExpression { @@ -3589,7 +3587,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSSatisfiesExpression<'old_ } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeAssertion<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSTypeAssertion<'_> { type Cloned = TSTypeAssertion<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSTypeAssertion { @@ -3600,7 +3598,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSTypeAssertion<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSImportEqualsDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSImportEqualsDeclaration<'_> { type Cloned = TSImportEqualsDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSImportEqualsDeclaration { @@ -3612,7 +3610,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSImportEqualsDeclaration<' } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSModuleReference<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSModuleReference<'_> { type Cloned = TSModuleReference<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3629,7 +3627,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSModuleReference<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSExternalModuleReference<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSExternalModuleReference<'_> { type Cloned = TSExternalModuleReference<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSExternalModuleReference { @@ -3639,7 +3637,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSExternalModuleReference<' } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSNonNullExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSNonNullExpression<'_> { type Cloned = TSNonNullExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSNonNullExpression { @@ -3649,7 +3647,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSNonNullExpression<'old_al } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Decorator<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Decorator<'_> { type Cloned = Decorator<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { Decorator { @@ -3659,7 +3657,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Decorator<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSExportAssignment<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSExportAssignment<'_> { type Cloned = TSExportAssignment<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSExportAssignment { @@ -3669,7 +3667,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSExportAssignment<'old_all } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSNamespaceExportDeclaration<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSNamespaceExportDeclaration<'_> { type Cloned = TSNamespaceExportDeclaration<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSNamespaceExportDeclaration { @@ -3679,7 +3677,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSNamespaceExportDeclaratio } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for TSInstantiationExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for TSInstantiationExpression<'_> { type Cloned = TSInstantiationExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { TSInstantiationExpression { @@ -3700,7 +3698,7 @@ impl<'alloc> CloneIn<'alloc> for ImportOrExportKind { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSDocNullableType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSDocNullableType<'_> { type Cloned = JSDocNullableType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSDocNullableType { @@ -3711,7 +3709,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSDocNullableType<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSDocNonNullableType<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSDocNonNullableType<'_> { type Cloned = JSDocNonNullableType<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSDocNonNullableType { @@ -3729,7 +3727,7 @@ impl<'alloc> CloneIn<'alloc> for JSDocUnknownType { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXElement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXElement<'_> { type Cloned = JSXElement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXElement { @@ -3741,7 +3739,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXElement<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXOpeningElement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXOpeningElement<'_> { type Cloned = JSXOpeningElement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXOpeningElement { @@ -3754,7 +3752,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXOpeningElement<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXClosingElement<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXClosingElement<'_> { type Cloned = JSXClosingElement<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXClosingElement { @@ -3764,7 +3762,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXClosingElement<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXFragment<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXFragment<'_> { type Cloned = JSXFragment<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXFragment { @@ -3790,7 +3788,7 @@ impl<'alloc> CloneIn<'alloc> for JSXClosingFragment { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXElementName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXElementName<'_> { type Cloned = JSXElementName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3811,7 +3809,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXElementName<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXNamespacedName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXNamespacedName<'_> { type Cloned = JSXNamespacedName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXNamespacedName { @@ -3822,7 +3820,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXNamespacedName<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXMemberExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXMemberExpression<'_> { type Cloned = JSXMemberExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXMemberExpression { @@ -3833,7 +3831,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXMemberExpression<'old_al } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXMemberExpressionObject<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXMemberExpressionObject<'_> { type Cloned = JSXMemberExpressionObject<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3850,7 +3848,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXMemberExpressionObject<' } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXExpressionContainer<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXExpressionContainer<'_> { type Cloned = JSXExpressionContainer<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXExpressionContainer { @@ -3860,7 +3858,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXExpressionContainer<'old } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXExpression<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXExpression<'_> { type Cloned = JSXExpression<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -3992,7 +3990,7 @@ impl<'alloc> CloneIn<'alloc> for JSXEmptyExpression { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXAttributeItem<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXAttributeItem<'_> { type Cloned = JSXAttributeItem<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -4004,7 +4002,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXAttributeItem<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXAttribute<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXAttribute<'_> { type Cloned = JSXAttribute<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXAttribute { @@ -4015,7 +4013,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXAttribute<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXSpreadAttribute<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXSpreadAttribute<'_> { type Cloned = JSXSpreadAttribute<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXSpreadAttribute { @@ -4025,7 +4023,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXSpreadAttribute<'old_all } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXAttributeName<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXAttributeName<'_> { type Cloned = JSXAttributeName<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -4037,7 +4035,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXAttributeName<'old_alloc } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXAttributeValue<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXAttributeValue<'_> { type Cloned = JSXAttributeValue<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -4053,7 +4051,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXAttributeValue<'old_allo } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXIdentifier<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXIdentifier<'_> { type Cloned = JSXIdentifier<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXIdentifier { @@ -4063,7 +4061,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXIdentifier<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXChild<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXChild<'_> { type Cloned = JSXChild<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -4078,7 +4076,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXChild<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXSpreadChild<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXSpreadChild<'_> { type Cloned = JSXSpreadChild<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXSpreadChild { @@ -4088,7 +4086,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXSpreadChild<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for JSXText<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for JSXText<'_> { type Cloned = JSXText<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { JSXText { diff --git a/crates/oxc_ast/src/generated/derive_content_eq.rs b/crates/oxc_ast/src/generated/derive_content_eq.rs index 4cffc6708063a..5a01e0c9a540e 100644 --- a/crates/oxc_ast/src/generated/derive_content_eq.rs +++ b/crates/oxc_ast/src/generated/derive_content_eq.rs @@ -27,7 +27,7 @@ impl ContentEq for NullLiteral { } } -impl<'a> ContentEq for NumericLiteral<'a> { +impl ContentEq for NumericLiteral<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.value, &other.value) && ContentEq::content_eq(&self.raw, &other.raw) @@ -35,35 +35,35 @@ impl<'a> ContentEq for NumericLiteral<'a> { } } -impl<'a> ContentEq for StringLiteral<'a> { +impl ContentEq for StringLiteral<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.value, &other.value) && ContentEq::content_eq(&self.raw, &other.raw) } } -impl<'a> ContentEq for BigIntLiteral<'a> { +impl ContentEq for BigIntLiteral<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.raw, &other.raw) && ContentEq::content_eq(&self.base, &other.base) } } -impl<'a> ContentEq for RegExpLiteral<'a> { +impl ContentEq for RegExpLiteral<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.regex, &other.regex) && ContentEq::content_eq(&self.raw, &other.raw) } } -impl<'a> ContentEq for RegExp<'a> { +impl ContentEq for RegExp<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.pattern, &other.pattern) && ContentEq::content_eq(&self.flags, &other.flags) } } -impl<'a> ContentEq for RegExpPattern<'a> { +impl ContentEq for RegExpPattern<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::Raw(it) => match other { @@ -82,7 +82,7 @@ impl<'a> ContentEq for RegExpPattern<'a> { } } -impl<'a> ContentEq for Program<'a> { +impl ContentEq for Program<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.source_type, &other.source_type) && ContentEq::content_eq(&self.source_text, &other.source_text) @@ -93,7 +93,7 @@ impl<'a> ContentEq for Program<'a> { } } -impl<'a> ContentEq for Expression<'a> { +impl ContentEq for Expression<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::BooleanLiteral(it) => match other { @@ -268,25 +268,25 @@ impl<'a> ContentEq for Expression<'a> { } } -impl<'a> ContentEq for IdentifierName<'a> { +impl ContentEq for IdentifierName<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) } } -impl<'a> ContentEq for IdentifierReference<'a> { +impl ContentEq for IdentifierReference<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) } } -impl<'a> ContentEq for BindingIdentifier<'a> { +impl ContentEq for BindingIdentifier<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) } } -impl<'a> ContentEq for LabelIdentifier<'a> { +impl ContentEq for LabelIdentifier<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) } @@ -298,13 +298,13 @@ impl ContentEq for ThisExpression { } } -impl<'a> ContentEq for ArrayExpression<'a> { +impl ContentEq for ArrayExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.elements, &other.elements) } } -impl<'a> ContentEq for ArrayExpressionElement<'a> { +impl ContentEq for ArrayExpressionElement<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::SpreadElement(it) => match other { @@ -493,13 +493,13 @@ impl ContentEq for Elision { } } -impl<'a> ContentEq for ObjectExpression<'a> { +impl ContentEq for ObjectExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.properties, &other.properties) } } -impl<'a> ContentEq for ObjectPropertyKind<'a> { +impl ContentEq for ObjectPropertyKind<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::ObjectProperty(it) => match other { @@ -514,7 +514,7 @@ impl<'a> ContentEq for ObjectPropertyKind<'a> { } } -impl<'a> ContentEq for ObjectProperty<'a> { +impl ContentEq for ObjectProperty<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.kind, &other.kind) && ContentEq::content_eq(&self.key, &other.key) @@ -525,7 +525,7 @@ impl<'a> ContentEq for ObjectProperty<'a> { } } -impl<'a> ContentEq for PropertyKey<'a> { +impl ContentEq for PropertyKey<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::StaticIdentifier(it) => match other { @@ -714,14 +714,14 @@ impl ContentEq for PropertyKind { } } -impl<'a> ContentEq for TemplateLiteral<'a> { +impl ContentEq for TemplateLiteral<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.quasis, &other.quasis) && ContentEq::content_eq(&self.expressions, &other.expressions) } } -impl<'a> ContentEq for TaggedTemplateExpression<'a> { +impl ContentEq for TaggedTemplateExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.tag, &other.tag) && ContentEq::content_eq(&self.quasi, &other.quasi) @@ -729,21 +729,21 @@ impl<'a> ContentEq for TaggedTemplateExpression<'a> { } } -impl<'a> ContentEq for TemplateElement<'a> { +impl ContentEq for TemplateElement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.tail, &other.tail) && ContentEq::content_eq(&self.value, &other.value) } } -impl<'a> ContentEq for TemplateElementValue<'a> { +impl ContentEq for TemplateElementValue<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.raw, &other.raw) && ContentEq::content_eq(&self.cooked, &other.cooked) } } -impl<'a> ContentEq for MemberExpression<'a> { +impl ContentEq for MemberExpression<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::ComputedMemberExpression(it) => match other { @@ -762,7 +762,7 @@ impl<'a> ContentEq for MemberExpression<'a> { } } -impl<'a> ContentEq for ComputedMemberExpression<'a> { +impl ContentEq for ComputedMemberExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.object, &other.object) && ContentEq::content_eq(&self.expression, &other.expression) @@ -770,7 +770,7 @@ impl<'a> ContentEq for ComputedMemberExpression<'a> { } } -impl<'a> ContentEq for StaticMemberExpression<'a> { +impl ContentEq for StaticMemberExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.object, &other.object) && ContentEq::content_eq(&self.property, &other.property) @@ -778,7 +778,7 @@ impl<'a> ContentEq for StaticMemberExpression<'a> { } } -impl<'a> ContentEq for PrivateFieldExpression<'a> { +impl ContentEq for PrivateFieldExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.object, &other.object) && ContentEq::content_eq(&self.field, &other.field) @@ -786,7 +786,7 @@ impl<'a> ContentEq for PrivateFieldExpression<'a> { } } -impl<'a> ContentEq for CallExpression<'a> { +impl ContentEq for CallExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.callee, &other.callee) && ContentEq::content_eq(&self.type_parameters, &other.type_parameters) @@ -795,7 +795,7 @@ impl<'a> ContentEq for CallExpression<'a> { } } -impl<'a> ContentEq for NewExpression<'a> { +impl ContentEq for NewExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.callee, &other.callee) && ContentEq::content_eq(&self.arguments, &other.arguments) @@ -803,20 +803,20 @@ impl<'a> ContentEq for NewExpression<'a> { } } -impl<'a> ContentEq for MetaProperty<'a> { +impl ContentEq for MetaProperty<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.meta, &other.meta) && ContentEq::content_eq(&self.property, &other.property) } } -impl<'a> ContentEq for SpreadElement<'a> { +impl ContentEq for SpreadElement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.argument, &other.argument) } } -impl<'a> ContentEq for Argument<'a> { +impl ContentEq for Argument<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::SpreadElement(it) => match other { @@ -995,7 +995,7 @@ impl<'a> ContentEq for Argument<'a> { } } -impl<'a> ContentEq for UpdateExpression<'a> { +impl ContentEq for UpdateExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.operator, &other.operator) && ContentEq::content_eq(&self.prefix, &other.prefix) @@ -1003,14 +1003,14 @@ impl<'a> ContentEq for UpdateExpression<'a> { } } -impl<'a> ContentEq for UnaryExpression<'a> { +impl ContentEq for UnaryExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.operator, &other.operator) && ContentEq::content_eq(&self.argument, &other.argument) } } -impl<'a> ContentEq for BinaryExpression<'a> { +impl ContentEq for BinaryExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.left, &other.left) && ContentEq::content_eq(&self.operator, &other.operator) @@ -1018,7 +1018,7 @@ impl<'a> ContentEq for BinaryExpression<'a> { } } -impl<'a> ContentEq for PrivateInExpression<'a> { +impl ContentEq for PrivateInExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.left, &other.left) && ContentEq::content_eq(&self.operator, &other.operator) @@ -1026,7 +1026,7 @@ impl<'a> ContentEq for PrivateInExpression<'a> { } } -impl<'a> ContentEq for LogicalExpression<'a> { +impl ContentEq for LogicalExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.left, &other.left) && ContentEq::content_eq(&self.operator, &other.operator) @@ -1034,7 +1034,7 @@ impl<'a> ContentEq for LogicalExpression<'a> { } } -impl<'a> ContentEq for ConditionalExpression<'a> { +impl ContentEq for ConditionalExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.test, &other.test) && ContentEq::content_eq(&self.consequent, &other.consequent) @@ -1042,7 +1042,7 @@ impl<'a> ContentEq for ConditionalExpression<'a> { } } -impl<'a> ContentEq for AssignmentExpression<'a> { +impl ContentEq for AssignmentExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.operator, &other.operator) && ContentEq::content_eq(&self.left, &other.left) @@ -1050,7 +1050,7 @@ impl<'a> ContentEq for AssignmentExpression<'a> { } } -impl<'a> ContentEq for AssignmentTarget<'a> { +impl ContentEq for AssignmentTarget<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::AssignmentTargetIdentifier(it) => match other { @@ -1101,7 +1101,7 @@ impl<'a> ContentEq for AssignmentTarget<'a> { } } -impl<'a> ContentEq for SimpleAssignmentTarget<'a> { +impl ContentEq for SimpleAssignmentTarget<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::AssignmentTargetIdentifier(it) => match other { @@ -1144,7 +1144,7 @@ impl<'a> ContentEq for SimpleAssignmentTarget<'a> { } } -impl<'a> ContentEq for AssignmentTargetPattern<'a> { +impl ContentEq for AssignmentTargetPattern<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::ArrayAssignmentTarget(it) => match other { @@ -1159,27 +1159,27 @@ impl<'a> ContentEq for AssignmentTargetPattern<'a> { } } -impl<'a> ContentEq for ArrayAssignmentTarget<'a> { +impl ContentEq for ArrayAssignmentTarget<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.elements, &other.elements) && ContentEq::content_eq(&self.rest, &other.rest) } } -impl<'a> ContentEq for ObjectAssignmentTarget<'a> { +impl ContentEq for ObjectAssignmentTarget<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.properties, &other.properties) && ContentEq::content_eq(&self.rest, &other.rest) } } -impl<'a> ContentEq for AssignmentTargetRest<'a> { +impl ContentEq for AssignmentTargetRest<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.target, &other.target) } } -impl<'a> ContentEq for AssignmentTargetMaybeDefault<'a> { +impl ContentEq for AssignmentTargetMaybeDefault<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::AssignmentTargetWithDefault(it) => match other { @@ -1236,14 +1236,14 @@ impl<'a> ContentEq for AssignmentTargetMaybeDefault<'a> { } } -impl<'a> ContentEq for AssignmentTargetWithDefault<'a> { +impl ContentEq for AssignmentTargetWithDefault<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.binding, &other.binding) && ContentEq::content_eq(&self.init, &other.init) } } -impl<'a> ContentEq for AssignmentTargetProperty<'a> { +impl ContentEq for AssignmentTargetProperty<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::AssignmentTargetPropertyIdentifier(it) => match other { @@ -1266,21 +1266,21 @@ impl<'a> ContentEq for AssignmentTargetProperty<'a> { } } -impl<'a> ContentEq for AssignmentTargetPropertyIdentifier<'a> { +impl ContentEq for AssignmentTargetPropertyIdentifier<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.binding, &other.binding) && ContentEq::content_eq(&self.init, &other.init) } } -impl<'a> ContentEq for AssignmentTargetPropertyProperty<'a> { +impl ContentEq for AssignmentTargetPropertyProperty<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) && ContentEq::content_eq(&self.binding, &other.binding) } } -impl<'a> ContentEq for SequenceExpression<'a> { +impl ContentEq for SequenceExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expressions, &other.expressions) } @@ -1292,19 +1292,19 @@ impl ContentEq for Super { } } -impl<'a> ContentEq for AwaitExpression<'a> { +impl ContentEq for AwaitExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.argument, &other.argument) } } -impl<'a> ContentEq for ChainExpression<'a> { +impl ContentEq for ChainExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) } } -impl<'a> ContentEq for ChainElement<'a> { +impl ContentEq for ChainElement<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::CallExpression(it) => match other { @@ -1331,13 +1331,13 @@ impl<'a> ContentEq for ChainElement<'a> { } } -impl<'a> ContentEq for ParenthesizedExpression<'a> { +impl ContentEq for ParenthesizedExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) } } -impl<'a> ContentEq for Statement<'a> { +impl ContentEq for Statement<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::BlockStatement(it) => match other { @@ -1474,26 +1474,26 @@ impl<'a> ContentEq for Statement<'a> { } } -impl<'a> ContentEq for Directive<'a> { +impl ContentEq for Directive<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) && ContentEq::content_eq(&self.directive, &other.directive) } } -impl<'a> ContentEq for Hashbang<'a> { +impl ContentEq for Hashbang<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.value, &other.value) } } -impl<'a> ContentEq for BlockStatement<'a> { +impl ContentEq for BlockStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for Declaration<'a> { +impl ContentEq for Declaration<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::VariableDeclaration(it) => match other { @@ -1532,7 +1532,7 @@ impl<'a> ContentEq for Declaration<'a> { } } -impl<'a> ContentEq for VariableDeclaration<'a> { +impl ContentEq for VariableDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.kind, &other.kind) && ContentEq::content_eq(&self.declarations, &other.declarations) @@ -1546,7 +1546,7 @@ impl ContentEq for VariableDeclarationKind { } } -impl<'a> ContentEq for VariableDeclarator<'a> { +impl ContentEq for VariableDeclarator<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.kind, &other.kind) && ContentEq::content_eq(&self.id, &other.id) @@ -1561,13 +1561,13 @@ impl ContentEq for EmptyStatement { } } -impl<'a> ContentEq for ExpressionStatement<'a> { +impl ContentEq for ExpressionStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) } } -impl<'a> ContentEq for IfStatement<'a> { +impl ContentEq for IfStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.test, &other.test) && ContentEq::content_eq(&self.consequent, &other.consequent) @@ -1575,21 +1575,21 @@ impl<'a> ContentEq for IfStatement<'a> { } } -impl<'a> ContentEq for DoWhileStatement<'a> { +impl ContentEq for DoWhileStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.body, &other.body) && ContentEq::content_eq(&self.test, &other.test) } } -impl<'a> ContentEq for WhileStatement<'a> { +impl ContentEq for WhileStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.test, &other.test) && ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for ForStatement<'a> { +impl ContentEq for ForStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.init, &other.init) && ContentEq::content_eq(&self.test, &other.test) @@ -1598,7 +1598,7 @@ impl<'a> ContentEq for ForStatement<'a> { } } -impl<'a> ContentEq for ForStatementInit<'a> { +impl ContentEq for ForStatementInit<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::VariableDeclaration(it) => match other { @@ -1777,7 +1777,7 @@ impl<'a> ContentEq for ForStatementInit<'a> { } } -impl<'a> ContentEq for ForInStatement<'a> { +impl ContentEq for ForInStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.left, &other.left) && ContentEq::content_eq(&self.right, &other.right) @@ -1785,7 +1785,7 @@ impl<'a> ContentEq for ForInStatement<'a> { } } -impl<'a> ContentEq for ForStatementLeft<'a> { +impl ContentEq for ForStatementLeft<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::VariableDeclaration(it) => match other { @@ -1840,7 +1840,7 @@ impl<'a> ContentEq for ForStatementLeft<'a> { } } -impl<'a> ContentEq for ForOfStatement<'a> { +impl ContentEq for ForOfStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.r#await, &other.r#await) && ContentEq::content_eq(&self.left, &other.left) @@ -1849,59 +1849,59 @@ impl<'a> ContentEq for ForOfStatement<'a> { } } -impl<'a> ContentEq for ContinueStatement<'a> { +impl ContentEq for ContinueStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.label, &other.label) } } -impl<'a> ContentEq for BreakStatement<'a> { +impl ContentEq for BreakStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.label, &other.label) } } -impl<'a> ContentEq for ReturnStatement<'a> { +impl ContentEq for ReturnStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.argument, &other.argument) } } -impl<'a> ContentEq for WithStatement<'a> { +impl ContentEq for WithStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.object, &other.object) && ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for SwitchStatement<'a> { +impl ContentEq for SwitchStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.discriminant, &other.discriminant) && ContentEq::content_eq(&self.cases, &other.cases) } } -impl<'a> ContentEq for SwitchCase<'a> { +impl ContentEq for SwitchCase<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.test, &other.test) && ContentEq::content_eq(&self.consequent, &other.consequent) } } -impl<'a> ContentEq for LabeledStatement<'a> { +impl ContentEq for LabeledStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.label, &other.label) && ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for ThrowStatement<'a> { +impl ContentEq for ThrowStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.argument, &other.argument) } } -impl<'a> ContentEq for TryStatement<'a> { +impl ContentEq for TryStatement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.block, &other.block) && ContentEq::content_eq(&self.handler, &other.handler) @@ -1909,14 +1909,14 @@ impl<'a> ContentEq for TryStatement<'a> { } } -impl<'a> ContentEq for CatchClause<'a> { +impl ContentEq for CatchClause<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.param, &other.param) && ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for CatchParameter<'a> { +impl ContentEq for CatchParameter<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.pattern, &other.pattern) } @@ -1928,7 +1928,7 @@ impl ContentEq for DebuggerStatement { } } -impl<'a> ContentEq for BindingPattern<'a> { +impl ContentEq for BindingPattern<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.kind, &other.kind) && ContentEq::content_eq(&self.type_annotation, &other.type_annotation) @@ -1936,7 +1936,7 @@ impl<'a> ContentEq for BindingPattern<'a> { } } -impl<'a> ContentEq for BindingPatternKind<'a> { +impl ContentEq for BindingPatternKind<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::BindingIdentifier(it) => match other { @@ -1959,21 +1959,21 @@ impl<'a> ContentEq for BindingPatternKind<'a> { } } -impl<'a> ContentEq for AssignmentPattern<'a> { +impl ContentEq for AssignmentPattern<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.left, &other.left) && ContentEq::content_eq(&self.right, &other.right) } } -impl<'a> ContentEq for ObjectPattern<'a> { +impl ContentEq for ObjectPattern<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.properties, &other.properties) && ContentEq::content_eq(&self.rest, &other.rest) } } -impl<'a> ContentEq for BindingProperty<'a> { +impl ContentEq for BindingProperty<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.key, &other.key) && ContentEq::content_eq(&self.value, &other.value) @@ -1982,20 +1982,20 @@ impl<'a> ContentEq for BindingProperty<'a> { } } -impl<'a> ContentEq for ArrayPattern<'a> { +impl ContentEq for ArrayPattern<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.elements, &other.elements) && ContentEq::content_eq(&self.rest, &other.rest) } } -impl<'a> ContentEq for BindingRestElement<'a> { +impl ContentEq for BindingRestElement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.argument, &other.argument) } } -impl<'a> ContentEq for Function<'a> { +impl ContentEq for Function<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.r#type, &other.r#type) && ContentEq::content_eq(&self.id, &other.id) @@ -2016,7 +2016,7 @@ impl ContentEq for FunctionType { } } -impl<'a> ContentEq for FormalParameters<'a> { +impl ContentEq for FormalParameters<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.kind, &other.kind) && ContentEq::content_eq(&self.items, &other.items) @@ -2024,7 +2024,7 @@ impl<'a> ContentEq for FormalParameters<'a> { } } -impl<'a> ContentEq for FormalParameter<'a> { +impl ContentEq for FormalParameter<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.decorators, &other.decorators) && ContentEq::content_eq(&self.pattern, &other.pattern) @@ -2040,14 +2040,14 @@ impl ContentEq for FormalParameterKind { } } -impl<'a> ContentEq for FunctionBody<'a> { +impl ContentEq for FunctionBody<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.directives, &other.directives) && ContentEq::content_eq(&self.statements, &other.statements) } } -impl<'a> ContentEq for ArrowFunctionExpression<'a> { +impl ContentEq for ArrowFunctionExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) && ContentEq::content_eq(&self.r#async, &other.r#async) @@ -2058,14 +2058,14 @@ impl<'a> ContentEq for ArrowFunctionExpression<'a> { } } -impl<'a> ContentEq for YieldExpression<'a> { +impl ContentEq for YieldExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.delegate, &other.delegate) && ContentEq::content_eq(&self.argument, &other.argument) } } -impl<'a> ContentEq for Class<'a> { +impl ContentEq for Class<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.r#type, &other.r#type) && ContentEq::content_eq(&self.decorators, &other.decorators) @@ -2086,13 +2086,13 @@ impl ContentEq for ClassType { } } -impl<'a> ContentEq for ClassBody<'a> { +impl ContentEq for ClassBody<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for ClassElement<'a> { +impl ContentEq for ClassElement<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::StaticBlock(it) => match other { @@ -2119,7 +2119,7 @@ impl<'a> ContentEq for ClassElement<'a> { } } -impl<'a> ContentEq for MethodDefinition<'a> { +impl ContentEq for MethodDefinition<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.r#type, &other.r#type) && ContentEq::content_eq(&self.decorators, &other.decorators) @@ -2140,7 +2140,7 @@ impl ContentEq for MethodDefinitionType { } } -impl<'a> ContentEq for PropertyDefinition<'a> { +impl ContentEq for PropertyDefinition<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.r#type, &other.r#type) && ContentEq::content_eq(&self.decorators, &other.decorators) @@ -2170,19 +2170,19 @@ impl ContentEq for MethodDefinitionKind { } } -impl<'a> ContentEq for PrivateIdentifier<'a> { +impl ContentEq for PrivateIdentifier<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) } } -impl<'a> ContentEq for StaticBlock<'a> { +impl ContentEq for StaticBlock<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for ModuleDeclaration<'a> { +impl ContentEq for ModuleDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::ImportDeclaration(it) => match other { @@ -2221,7 +2221,7 @@ impl ContentEq for AccessorPropertyType { } } -impl<'a> ContentEq for AccessorProperty<'a> { +impl ContentEq for AccessorProperty<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.r#type, &other.r#type) && ContentEq::content_eq(&self.decorators, &other.decorators) @@ -2235,14 +2235,14 @@ impl<'a> ContentEq for AccessorProperty<'a> { } } -impl<'a> ContentEq for ImportExpression<'a> { +impl ContentEq for ImportExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.source, &other.source) && ContentEq::content_eq(&self.arguments, &other.arguments) } } -impl<'a> ContentEq for ImportDeclaration<'a> { +impl ContentEq for ImportDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.specifiers, &other.specifiers) && ContentEq::content_eq(&self.source, &other.source) @@ -2251,7 +2251,7 @@ impl<'a> ContentEq for ImportDeclaration<'a> { } } -impl<'a> ContentEq for ImportDeclarationSpecifier<'a> { +impl ContentEq for ImportDeclarationSpecifier<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::ImportSpecifier(it) => match other { @@ -2270,7 +2270,7 @@ impl<'a> ContentEq for ImportDeclarationSpecifier<'a> { } } -impl<'a> ContentEq for ImportSpecifier<'a> { +impl ContentEq for ImportSpecifier<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.imported, &other.imported) && ContentEq::content_eq(&self.local, &other.local) @@ -2278,33 +2278,33 @@ impl<'a> ContentEq for ImportSpecifier<'a> { } } -impl<'a> ContentEq for ImportDefaultSpecifier<'a> { +impl ContentEq for ImportDefaultSpecifier<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.local, &other.local) } } -impl<'a> ContentEq for ImportNamespaceSpecifier<'a> { +impl ContentEq for ImportNamespaceSpecifier<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.local, &other.local) } } -impl<'a> ContentEq for WithClause<'a> { +impl ContentEq for WithClause<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.attributes_keyword, &other.attributes_keyword) && ContentEq::content_eq(&self.with_entries, &other.with_entries) } } -impl<'a> ContentEq for ImportAttribute<'a> { +impl ContentEq for ImportAttribute<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.key, &other.key) && ContentEq::content_eq(&self.value, &other.value) } } -impl<'a> ContentEq for ImportAttributeKey<'a> { +impl ContentEq for ImportAttributeKey<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::Identifier(it) => match other { @@ -2319,7 +2319,7 @@ impl<'a> ContentEq for ImportAttributeKey<'a> { } } -impl<'a> ContentEq for ExportNamedDeclaration<'a> { +impl ContentEq for ExportNamedDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.declaration, &other.declaration) && ContentEq::content_eq(&self.specifiers, &other.specifiers) @@ -2329,14 +2329,14 @@ impl<'a> ContentEq for ExportNamedDeclaration<'a> { } } -impl<'a> ContentEq for ExportDefaultDeclaration<'a> { +impl ContentEq for ExportDefaultDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.declaration, &other.declaration) && ContentEq::content_eq(&self.exported, &other.exported) } } -impl<'a> ContentEq for ExportAllDeclaration<'a> { +impl ContentEq for ExportAllDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.exported, &other.exported) && ContentEq::content_eq(&self.source, &other.source) @@ -2345,7 +2345,7 @@ impl<'a> ContentEq for ExportAllDeclaration<'a> { } } -impl<'a> ContentEq for ExportSpecifier<'a> { +impl ContentEq for ExportSpecifier<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.local, &other.local) && ContentEq::content_eq(&self.exported, &other.exported) @@ -2353,7 +2353,7 @@ impl<'a> ContentEq for ExportSpecifier<'a> { } } -impl<'a> ContentEq for ExportDefaultDeclarationKind<'a> { +impl ContentEq for ExportDefaultDeclarationKind<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::FunctionDeclaration(it) => match other { @@ -2540,7 +2540,7 @@ impl<'a> ContentEq for ExportDefaultDeclarationKind<'a> { } } -impl<'a> ContentEq for ModuleExportName<'a> { +impl ContentEq for ModuleExportName<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::IdentifierName(it) => match other { @@ -2559,13 +2559,13 @@ impl<'a> ContentEq for ModuleExportName<'a> { } } -impl<'a> ContentEq for TSThisParameter<'a> { +impl ContentEq for TSThisParameter<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_annotation, &other.type_annotation) } } -impl<'a> ContentEq for TSEnumDeclaration<'a> { +impl ContentEq for TSEnumDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.id, &other.id) && ContentEq::content_eq(&self.members, &other.members) @@ -2574,14 +2574,14 @@ impl<'a> ContentEq for TSEnumDeclaration<'a> { } } -impl<'a> ContentEq for TSEnumMember<'a> { +impl ContentEq for TSEnumMember<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.id, &other.id) && ContentEq::content_eq(&self.initializer, &other.initializer) } } -impl<'a> ContentEq for TSEnumMemberName<'a> { +impl ContentEq for TSEnumMemberName<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::Identifier(it) => match other { @@ -2596,19 +2596,19 @@ impl<'a> ContentEq for TSEnumMemberName<'a> { } } -impl<'a> ContentEq for TSTypeAnnotation<'a> { +impl ContentEq for TSTypeAnnotation<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_annotation, &other.type_annotation) } } -impl<'a> ContentEq for TSLiteralType<'a> { +impl ContentEq for TSLiteralType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.literal, &other.literal) } } -impl<'a> ContentEq for TSLiteral<'a> { +impl ContentEq for TSLiteral<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::BooleanLiteral(it) => match other { @@ -2647,7 +2647,7 @@ impl<'a> ContentEq for TSLiteral<'a> { } } -impl<'a> ContentEq for TSType<'a> { +impl ContentEq for TSType<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::TSAnyKeyword(it) => match other { @@ -2806,7 +2806,7 @@ impl<'a> ContentEq for TSType<'a> { } } -impl<'a> ContentEq for TSConditionalType<'a> { +impl ContentEq for TSConditionalType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.check_type, &other.check_type) && ContentEq::content_eq(&self.extends_type, &other.extends_type) @@ -2815,25 +2815,25 @@ impl<'a> ContentEq for TSConditionalType<'a> { } } -impl<'a> ContentEq for TSUnionType<'a> { +impl ContentEq for TSUnionType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.types, &other.types) } } -impl<'a> ContentEq for TSIntersectionType<'a> { +impl ContentEq for TSIntersectionType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.types, &other.types) } } -impl<'a> ContentEq for TSParenthesizedType<'a> { +impl ContentEq for TSParenthesizedType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_annotation, &other.type_annotation) } } -impl<'a> ContentEq for TSTypeOperator<'a> { +impl ContentEq for TSTypeOperator<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.operator, &other.operator) && ContentEq::content_eq(&self.type_annotation, &other.type_annotation) @@ -2846,26 +2846,26 @@ impl ContentEq for TSTypeOperatorOperator { } } -impl<'a> ContentEq for TSArrayType<'a> { +impl ContentEq for TSArrayType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.element_type, &other.element_type) } } -impl<'a> ContentEq for TSIndexedAccessType<'a> { +impl ContentEq for TSIndexedAccessType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.object_type, &other.object_type) && ContentEq::content_eq(&self.index_type, &other.index_type) } } -impl<'a> ContentEq for TSTupleType<'a> { +impl ContentEq for TSTupleType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.element_types, &other.element_types) } } -impl<'a> ContentEq for TSNamedTupleMember<'a> { +impl ContentEq for TSNamedTupleMember<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.element_type, &other.element_type) && ContentEq::content_eq(&self.label, &other.label) @@ -2873,19 +2873,19 @@ impl<'a> ContentEq for TSNamedTupleMember<'a> { } } -impl<'a> ContentEq for TSOptionalType<'a> { +impl ContentEq for TSOptionalType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_annotation, &other.type_annotation) } } -impl<'a> ContentEq for TSRestType<'a> { +impl ContentEq for TSRestType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_annotation, &other.type_annotation) } } -impl<'a> ContentEq for TSTupleElement<'a> { +impl ContentEq for TSTupleElement<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::TSOptionalType(it) => match other { @@ -3136,14 +3136,14 @@ impl ContentEq for TSBigIntKeyword { } } -impl<'a> ContentEq for TSTypeReference<'a> { +impl ContentEq for TSTypeReference<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_name, &other.type_name) && ContentEq::content_eq(&self.type_parameters, &other.type_parameters) } } -impl<'a> ContentEq for TSTypeName<'a> { +impl ContentEq for TSTypeName<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::IdentifierReference(it) => match other { @@ -3158,20 +3158,20 @@ impl<'a> ContentEq for TSTypeName<'a> { } } -impl<'a> ContentEq for TSQualifiedName<'a> { +impl ContentEq for TSQualifiedName<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.left, &other.left) && ContentEq::content_eq(&self.right, &other.right) } } -impl<'a> ContentEq for TSTypeParameterInstantiation<'a> { +impl ContentEq for TSTypeParameterInstantiation<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.params, &other.params) } } -impl<'a> ContentEq for TSTypeParameter<'a> { +impl ContentEq for TSTypeParameter<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) && ContentEq::content_eq(&self.constraint, &other.constraint) @@ -3182,13 +3182,13 @@ impl<'a> ContentEq for TSTypeParameter<'a> { } } -impl<'a> ContentEq for TSTypeParameterDeclaration<'a> { +impl ContentEq for TSTypeParameterDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.params, &other.params) } } -impl<'a> ContentEq for TSTypeAliasDeclaration<'a> { +impl ContentEq for TSTypeAliasDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.id, &other.id) && ContentEq::content_eq(&self.type_parameters, &other.type_parameters) @@ -3203,14 +3203,14 @@ impl ContentEq for TSAccessibility { } } -impl<'a> ContentEq for TSClassImplements<'a> { +impl ContentEq for TSClassImplements<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) && ContentEq::content_eq(&self.type_parameters, &other.type_parameters) } } -impl<'a> ContentEq for TSInterfaceDeclaration<'a> { +impl ContentEq for TSInterfaceDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.id, &other.id) && ContentEq::content_eq(&self.extends, &other.extends) @@ -3220,13 +3220,13 @@ impl<'a> ContentEq for TSInterfaceDeclaration<'a> { } } -impl<'a> ContentEq for TSInterfaceBody<'a> { +impl ContentEq for TSInterfaceBody<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for TSPropertySignature<'a> { +impl ContentEq for TSPropertySignature<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.computed, &other.computed) && ContentEq::content_eq(&self.optional, &other.optional) @@ -3236,7 +3236,7 @@ impl<'a> ContentEq for TSPropertySignature<'a> { } } -impl<'a> ContentEq for TSSignature<'a> { +impl ContentEq for TSSignature<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::TSIndexSignature(it) => match other { @@ -3267,7 +3267,7 @@ impl<'a> ContentEq for TSSignature<'a> { } } -impl<'a> ContentEq for TSIndexSignature<'a> { +impl ContentEq for TSIndexSignature<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.parameters, &other.parameters) && ContentEq::content_eq(&self.type_annotation, &other.type_annotation) @@ -3276,7 +3276,7 @@ impl<'a> ContentEq for TSIndexSignature<'a> { } } -impl<'a> ContentEq for TSCallSignatureDeclaration<'a> { +impl ContentEq for TSCallSignatureDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_parameters, &other.type_parameters) && ContentEq::content_eq(&self.this_param, &other.this_param) @@ -3291,7 +3291,7 @@ impl ContentEq for TSMethodSignatureKind { } } -impl<'a> ContentEq for TSMethodSignature<'a> { +impl ContentEq for TSMethodSignature<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.key, &other.key) && ContentEq::content_eq(&self.computed, &other.computed) @@ -3304,7 +3304,7 @@ impl<'a> ContentEq for TSMethodSignature<'a> { } } -impl<'a> ContentEq for TSConstructSignatureDeclaration<'a> { +impl ContentEq for TSConstructSignatureDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_parameters, &other.type_parameters) && ContentEq::content_eq(&self.params, &other.params) @@ -3312,21 +3312,21 @@ impl<'a> ContentEq for TSConstructSignatureDeclaration<'a> { } } -impl<'a> ContentEq for TSIndexSignatureName<'a> { +impl ContentEq for TSIndexSignatureName<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) && ContentEq::content_eq(&self.type_annotation, &other.type_annotation) } } -impl<'a> ContentEq for TSInterfaceHeritage<'a> { +impl ContentEq for TSInterfaceHeritage<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) && ContentEq::content_eq(&self.type_parameters, &other.type_parameters) } } -impl<'a> ContentEq for TSTypePredicate<'a> { +impl ContentEq for TSTypePredicate<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.parameter_name, &other.parameter_name) && ContentEq::content_eq(&self.asserts, &other.asserts) @@ -3334,7 +3334,7 @@ impl<'a> ContentEq for TSTypePredicate<'a> { } } -impl<'a> ContentEq for TSTypePredicateName<'a> { +impl ContentEq for TSTypePredicateName<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::Identifier(it) => match other { @@ -3349,7 +3349,7 @@ impl<'a> ContentEq for TSTypePredicateName<'a> { } } -impl<'a> ContentEq for TSModuleDeclaration<'a> { +impl ContentEq for TSModuleDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.id, &other.id) && ContentEq::content_eq(&self.body, &other.body) @@ -3364,7 +3364,7 @@ impl ContentEq for TSModuleDeclarationKind { } } -impl<'a> ContentEq for TSModuleDeclarationName<'a> { +impl ContentEq for TSModuleDeclarationName<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::Identifier(it) => match other { @@ -3379,7 +3379,7 @@ impl<'a> ContentEq for TSModuleDeclarationName<'a> { } } -impl<'a> ContentEq for TSModuleDeclarationBody<'a> { +impl ContentEq for TSModuleDeclarationBody<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::TSModuleDeclaration(it) => match other { @@ -3394,33 +3394,33 @@ impl<'a> ContentEq for TSModuleDeclarationBody<'a> { } } -impl<'a> ContentEq for TSModuleBlock<'a> { +impl ContentEq for TSModuleBlock<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.directives, &other.directives) && ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for TSTypeLiteral<'a> { +impl ContentEq for TSTypeLiteral<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.members, &other.members) } } -impl<'a> ContentEq for TSInferType<'a> { +impl ContentEq for TSInferType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_parameter, &other.type_parameter) } } -impl<'a> ContentEq for TSTypeQuery<'a> { +impl ContentEq for TSTypeQuery<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expr_name, &other.expr_name) && ContentEq::content_eq(&self.type_parameters, &other.type_parameters) } } -impl<'a> ContentEq for TSTypeQueryExprName<'a> { +impl ContentEq for TSTypeQueryExprName<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::TSImportType(it) => match other { @@ -3439,7 +3439,7 @@ impl<'a> ContentEq for TSTypeQueryExprName<'a> { } } -impl<'a> ContentEq for TSImportType<'a> { +impl ContentEq for TSImportType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.is_type_of, &other.is_type_of) && ContentEq::content_eq(&self.parameter, &other.parameter) @@ -3449,21 +3449,21 @@ impl<'a> ContentEq for TSImportType<'a> { } } -impl<'a> ContentEq for TSImportAttributes<'a> { +impl ContentEq for TSImportAttributes<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.attributes_keyword, &other.attributes_keyword) && ContentEq::content_eq(&self.elements, &other.elements) } } -impl<'a> ContentEq for TSImportAttribute<'a> { +impl ContentEq for TSImportAttribute<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) && ContentEq::content_eq(&self.value, &other.value) } } -impl<'a> ContentEq for TSImportAttributeName<'a> { +impl ContentEq for TSImportAttributeName<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::Identifier(it) => match other { @@ -3478,7 +3478,7 @@ impl<'a> ContentEq for TSImportAttributeName<'a> { } } -impl<'a> ContentEq for TSFunctionType<'a> { +impl ContentEq for TSFunctionType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_parameters, &other.type_parameters) && ContentEq::content_eq(&self.this_param, &other.this_param) @@ -3487,7 +3487,7 @@ impl<'a> ContentEq for TSFunctionType<'a> { } } -impl<'a> ContentEq for TSConstructorType<'a> { +impl ContentEq for TSConstructorType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.r#abstract, &other.r#abstract) && ContentEq::content_eq(&self.type_parameters, &other.type_parameters) @@ -3496,7 +3496,7 @@ impl<'a> ContentEq for TSConstructorType<'a> { } } -impl<'a> ContentEq for TSMappedType<'a> { +impl ContentEq for TSMappedType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_parameter, &other.type_parameter) && ContentEq::content_eq(&self.name_type, &other.name_type) @@ -3512,35 +3512,35 @@ impl ContentEq for TSMappedTypeModifierOperator { } } -impl<'a> ContentEq for TSTemplateLiteralType<'a> { +impl ContentEq for TSTemplateLiteralType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.quasis, &other.quasis) && ContentEq::content_eq(&self.types, &other.types) } } -impl<'a> ContentEq for TSAsExpression<'a> { +impl ContentEq for TSAsExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) && ContentEq::content_eq(&self.type_annotation, &other.type_annotation) } } -impl<'a> ContentEq for TSSatisfiesExpression<'a> { +impl ContentEq for TSSatisfiesExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) && ContentEq::content_eq(&self.type_annotation, &other.type_annotation) } } -impl<'a> ContentEq for TSTypeAssertion<'a> { +impl ContentEq for TSTypeAssertion<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) && ContentEq::content_eq(&self.type_annotation, &other.type_annotation) } } -impl<'a> ContentEq for TSImportEqualsDeclaration<'a> { +impl ContentEq for TSImportEqualsDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.id, &other.id) && ContentEq::content_eq(&self.module_reference, &other.module_reference) @@ -3548,7 +3548,7 @@ impl<'a> ContentEq for TSImportEqualsDeclaration<'a> { } } -impl<'a> ContentEq for TSModuleReference<'a> { +impl ContentEq for TSModuleReference<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::ExternalModuleReference(it) => match other { @@ -3567,37 +3567,37 @@ impl<'a> ContentEq for TSModuleReference<'a> { } } -impl<'a> ContentEq for TSExternalModuleReference<'a> { +impl ContentEq for TSExternalModuleReference<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) } } -impl<'a> ContentEq for TSNonNullExpression<'a> { +impl ContentEq for TSNonNullExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) } } -impl<'a> ContentEq for Decorator<'a> { +impl ContentEq for Decorator<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) } } -impl<'a> ContentEq for TSExportAssignment<'a> { +impl ContentEq for TSExportAssignment<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) } } -impl<'a> ContentEq for TSNamespaceExportDeclaration<'a> { +impl ContentEq for TSNamespaceExportDeclaration<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.id, &other.id) } } -impl<'a> ContentEq for TSInstantiationExpression<'a> { +impl ContentEq for TSInstantiationExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) && ContentEq::content_eq(&self.type_parameters, &other.type_parameters) @@ -3610,14 +3610,14 @@ impl ContentEq for ImportOrExportKind { } } -impl<'a> ContentEq for JSDocNullableType<'a> { +impl ContentEq for JSDocNullableType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_annotation, &other.type_annotation) && ContentEq::content_eq(&self.postfix, &other.postfix) } } -impl<'a> ContentEq for JSDocNonNullableType<'a> { +impl ContentEq for JSDocNonNullableType<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.type_annotation, &other.type_annotation) && ContentEq::content_eq(&self.postfix, &other.postfix) @@ -3630,7 +3630,7 @@ impl ContentEq for JSDocUnknownType { } } -impl<'a> ContentEq for JSXElement<'a> { +impl ContentEq for JSXElement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.opening_element, &other.opening_element) && ContentEq::content_eq(&self.closing_element, &other.closing_element) @@ -3638,7 +3638,7 @@ impl<'a> ContentEq for JSXElement<'a> { } } -impl<'a> ContentEq for JSXOpeningElement<'a> { +impl ContentEq for JSXOpeningElement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.self_closing, &other.self_closing) && ContentEq::content_eq(&self.name, &other.name) @@ -3647,13 +3647,13 @@ impl<'a> ContentEq for JSXOpeningElement<'a> { } } -impl<'a> ContentEq for JSXClosingElement<'a> { +impl ContentEq for JSXClosingElement<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) } } -impl<'a> ContentEq for JSXFragment<'a> { +impl ContentEq for JSXFragment<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.opening_fragment, &other.opening_fragment) && ContentEq::content_eq(&self.closing_fragment, &other.closing_fragment) @@ -3673,7 +3673,7 @@ impl ContentEq for JSXClosingFragment { } } -impl<'a> ContentEq for JSXElementName<'a> { +impl ContentEq for JSXElementName<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::Identifier(it) => match other { @@ -3700,21 +3700,21 @@ impl<'a> ContentEq for JSXElementName<'a> { } } -impl<'a> ContentEq for JSXNamespacedName<'a> { +impl ContentEq for JSXNamespacedName<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.namespace, &other.namespace) && ContentEq::content_eq(&self.property, &other.property) } } -impl<'a> ContentEq for JSXMemberExpression<'a> { +impl ContentEq for JSXMemberExpression<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.object, &other.object) && ContentEq::content_eq(&self.property, &other.property) } } -impl<'a> ContentEq for JSXMemberExpressionObject<'a> { +impl ContentEq for JSXMemberExpressionObject<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::IdentifierReference(it) => match other { @@ -3733,13 +3733,13 @@ impl<'a> ContentEq for JSXMemberExpressionObject<'a> { } } -impl<'a> ContentEq for JSXExpressionContainer<'a> { +impl ContentEq for JSXExpressionContainer<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) } } -impl<'a> ContentEq for JSXExpression<'a> { +impl ContentEq for JSXExpression<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::EmptyExpression(it) => match other { @@ -3924,7 +3924,7 @@ impl ContentEq for JSXEmptyExpression { } } -impl<'a> ContentEq for JSXAttributeItem<'a> { +impl ContentEq for JSXAttributeItem<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::Attribute(it) => match other { @@ -3939,20 +3939,20 @@ impl<'a> ContentEq for JSXAttributeItem<'a> { } } -impl<'a> ContentEq for JSXAttribute<'a> { +impl ContentEq for JSXAttribute<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) && ContentEq::content_eq(&self.value, &other.value) } } -impl<'a> ContentEq for JSXSpreadAttribute<'a> { +impl ContentEq for JSXSpreadAttribute<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.argument, &other.argument) } } -impl<'a> ContentEq for JSXAttributeName<'a> { +impl ContentEq for JSXAttributeName<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::Identifier(it) => match other { @@ -3967,7 +3967,7 @@ impl<'a> ContentEq for JSXAttributeName<'a> { } } -impl<'a> ContentEq for JSXAttributeValue<'a> { +impl ContentEq for JSXAttributeValue<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::StringLiteral(it) => match other { @@ -3990,13 +3990,13 @@ impl<'a> ContentEq for JSXAttributeValue<'a> { } } -impl<'a> ContentEq for JSXIdentifier<'a> { +impl ContentEq for JSXIdentifier<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) } } -impl<'a> ContentEq for JSXChild<'a> { +impl ContentEq for JSXChild<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::Text(it) => match other { @@ -4023,13 +4023,13 @@ impl<'a> ContentEq for JSXChild<'a> { } } -impl<'a> ContentEq for JSXSpreadChild<'a> { +impl ContentEq for JSXSpreadChild<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.expression, &other.expression) } } -impl<'a> ContentEq for JSXText<'a> { +impl ContentEq for JSXText<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.value, &other.value) } diff --git a/crates/oxc_ast/src/generated/derive_content_hash.rs b/crates/oxc_ast/src/generated/derive_content_hash.rs index 0cb53022c60cf..467e8f34538f5 100644 --- a/crates/oxc_ast/src/generated/derive_content_hash.rs +++ b/crates/oxc_ast/src/generated/derive_content_hash.rs @@ -23,35 +23,35 @@ impl ContentHash for BooleanLiteral { } } -impl<'a> ContentHash for StringLiteral<'a> { +impl ContentHash for StringLiteral<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.value, state); ContentHash::content_hash(&self.raw, state); } } -impl<'a> ContentHash for BigIntLiteral<'a> { +impl ContentHash for BigIntLiteral<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.raw, state); ContentHash::content_hash(&self.base, state); } } -impl<'a> ContentHash for RegExpLiteral<'a> { +impl ContentHash for RegExpLiteral<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.regex, state); ContentHash::content_hash(&self.raw, state); } } -impl<'a> ContentHash for RegExp<'a> { +impl ContentHash for RegExp<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.pattern, state); ContentHash::content_hash(&self.flags, state); } } -impl<'a> ContentHash for RegExpPattern<'a> { +impl ContentHash for RegExpPattern<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -62,7 +62,7 @@ impl<'a> ContentHash for RegExpPattern<'a> { } } -impl<'a> ContentHash for Program<'a> { +impl ContentHash for Program<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.source_type, state); ContentHash::content_hash(&self.source_text, state); @@ -73,7 +73,7 @@ impl<'a> ContentHash for Program<'a> { } } -impl<'a> ContentHash for Expression<'a> { +impl ContentHash for Expression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -123,25 +123,25 @@ impl<'a> ContentHash for Expression<'a> { } } -impl<'a> ContentHash for IdentifierName<'a> { +impl ContentHash for IdentifierName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); } } -impl<'a> ContentHash for IdentifierReference<'a> { +impl ContentHash for IdentifierReference<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); } } -impl<'a> ContentHash for BindingIdentifier<'a> { +impl ContentHash for BindingIdentifier<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); } } -impl<'a> ContentHash for LabelIdentifier<'a> { +impl ContentHash for LabelIdentifier<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); } @@ -151,13 +151,13 @@ impl ContentHash for ThisExpression { fn content_hash(&self, _: &mut H) {} } -impl<'a> ContentHash for ArrayExpression<'a> { +impl ContentHash for ArrayExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.elements, state); } } -impl<'a> ContentHash for ArrayExpressionElement<'a> { +impl ContentHash for ArrayExpressionElement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -213,13 +213,13 @@ impl ContentHash for Elision { fn content_hash(&self, _: &mut H) {} } -impl<'a> ContentHash for ObjectExpression<'a> { +impl ContentHash for ObjectExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.properties, state); } } -impl<'a> ContentHash for ObjectPropertyKind<'a> { +impl ContentHash for ObjectPropertyKind<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -229,7 +229,7 @@ impl<'a> ContentHash for ObjectPropertyKind<'a> { } } -impl<'a> ContentHash for ObjectProperty<'a> { +impl ContentHash for ObjectProperty<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.kind, state); ContentHash::content_hash(&self.key, state); @@ -240,7 +240,7 @@ impl<'a> ContentHash for ObjectProperty<'a> { } } -impl<'a> ContentHash for PropertyKey<'a> { +impl ContentHash for PropertyKey<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -298,14 +298,14 @@ impl ContentHash for PropertyKind { } } -impl<'a> ContentHash for TemplateLiteral<'a> { +impl ContentHash for TemplateLiteral<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.quasis, state); ContentHash::content_hash(&self.expressions, state); } } -impl<'a> ContentHash for TaggedTemplateExpression<'a> { +impl ContentHash for TaggedTemplateExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.tag, state); ContentHash::content_hash(&self.quasi, state); @@ -313,21 +313,21 @@ impl<'a> ContentHash for TaggedTemplateExpression<'a> { } } -impl<'a> ContentHash for TemplateElement<'a> { +impl ContentHash for TemplateElement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.tail, state); ContentHash::content_hash(&self.value, state); } } -impl<'a> ContentHash for TemplateElementValue<'a> { +impl ContentHash for TemplateElementValue<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.raw, state); ContentHash::content_hash(&self.cooked, state); } } -impl<'a> ContentHash for MemberExpression<'a> { +impl ContentHash for MemberExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -338,7 +338,7 @@ impl<'a> ContentHash for MemberExpression<'a> { } } -impl<'a> ContentHash for ComputedMemberExpression<'a> { +impl ContentHash for ComputedMemberExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.object, state); ContentHash::content_hash(&self.expression, state); @@ -346,7 +346,7 @@ impl<'a> ContentHash for ComputedMemberExpression<'a> { } } -impl<'a> ContentHash for StaticMemberExpression<'a> { +impl ContentHash for StaticMemberExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.object, state); ContentHash::content_hash(&self.property, state); @@ -354,7 +354,7 @@ impl<'a> ContentHash for StaticMemberExpression<'a> { } } -impl<'a> ContentHash for PrivateFieldExpression<'a> { +impl ContentHash for PrivateFieldExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.object, state); ContentHash::content_hash(&self.field, state); @@ -362,7 +362,7 @@ impl<'a> ContentHash for PrivateFieldExpression<'a> { } } -impl<'a> ContentHash for CallExpression<'a> { +impl ContentHash for CallExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.callee, state); ContentHash::content_hash(&self.type_parameters, state); @@ -371,7 +371,7 @@ impl<'a> ContentHash for CallExpression<'a> { } } -impl<'a> ContentHash for NewExpression<'a> { +impl ContentHash for NewExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.callee, state); ContentHash::content_hash(&self.arguments, state); @@ -379,20 +379,20 @@ impl<'a> ContentHash for NewExpression<'a> { } } -impl<'a> ContentHash for MetaProperty<'a> { +impl ContentHash for MetaProperty<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.meta, state); ContentHash::content_hash(&self.property, state); } } -impl<'a> ContentHash for SpreadElement<'a> { +impl ContentHash for SpreadElement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.argument, state); } } -impl<'a> ContentHash for Argument<'a> { +impl ContentHash for Argument<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -443,7 +443,7 @@ impl<'a> ContentHash for Argument<'a> { } } -impl<'a> ContentHash for UpdateExpression<'a> { +impl ContentHash for UpdateExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.operator, state); ContentHash::content_hash(&self.prefix, state); @@ -451,14 +451,14 @@ impl<'a> ContentHash for UpdateExpression<'a> { } } -impl<'a> ContentHash for UnaryExpression<'a> { +impl ContentHash for UnaryExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.operator, state); ContentHash::content_hash(&self.argument, state); } } -impl<'a> ContentHash for BinaryExpression<'a> { +impl ContentHash for BinaryExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.left, state); ContentHash::content_hash(&self.operator, state); @@ -466,7 +466,7 @@ impl<'a> ContentHash for BinaryExpression<'a> { } } -impl<'a> ContentHash for PrivateInExpression<'a> { +impl ContentHash for PrivateInExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.left, state); ContentHash::content_hash(&self.operator, state); @@ -474,7 +474,7 @@ impl<'a> ContentHash for PrivateInExpression<'a> { } } -impl<'a> ContentHash for LogicalExpression<'a> { +impl ContentHash for LogicalExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.left, state); ContentHash::content_hash(&self.operator, state); @@ -482,7 +482,7 @@ impl<'a> ContentHash for LogicalExpression<'a> { } } -impl<'a> ContentHash for ConditionalExpression<'a> { +impl ContentHash for ConditionalExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.test, state); ContentHash::content_hash(&self.consequent, state); @@ -490,7 +490,7 @@ impl<'a> ContentHash for ConditionalExpression<'a> { } } -impl<'a> ContentHash for AssignmentExpression<'a> { +impl ContentHash for AssignmentExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.operator, state); ContentHash::content_hash(&self.left, state); @@ -498,7 +498,7 @@ impl<'a> ContentHash for AssignmentExpression<'a> { } } -impl<'a> ContentHash for AssignmentTarget<'a> { +impl ContentHash for AssignmentTarget<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -517,7 +517,7 @@ impl<'a> ContentHash for AssignmentTarget<'a> { } } -impl<'a> ContentHash for SimpleAssignmentTarget<'a> { +impl ContentHash for SimpleAssignmentTarget<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -534,7 +534,7 @@ impl<'a> ContentHash for SimpleAssignmentTarget<'a> { } } -impl<'a> ContentHash for AssignmentTargetPattern<'a> { +impl ContentHash for AssignmentTargetPattern<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -544,27 +544,27 @@ impl<'a> ContentHash for AssignmentTargetPattern<'a> { } } -impl<'a> ContentHash for ArrayAssignmentTarget<'a> { +impl ContentHash for ArrayAssignmentTarget<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.elements, state); ContentHash::content_hash(&self.rest, state); } } -impl<'a> ContentHash for ObjectAssignmentTarget<'a> { +impl ContentHash for ObjectAssignmentTarget<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.properties, state); ContentHash::content_hash(&self.rest, state); } } -impl<'a> ContentHash for AssignmentTargetRest<'a> { +impl ContentHash for AssignmentTargetRest<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.target, state); } } -impl<'a> ContentHash for AssignmentTargetMaybeDefault<'a> { +impl ContentHash for AssignmentTargetMaybeDefault<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -584,14 +584,14 @@ impl<'a> ContentHash for AssignmentTargetMaybeDefault<'a> { } } -impl<'a> ContentHash for AssignmentTargetWithDefault<'a> { +impl ContentHash for AssignmentTargetWithDefault<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.binding, state); ContentHash::content_hash(&self.init, state); } } -impl<'a> ContentHash for AssignmentTargetProperty<'a> { +impl ContentHash for AssignmentTargetProperty<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -601,21 +601,21 @@ impl<'a> ContentHash for AssignmentTargetProperty<'a> { } } -impl<'a> ContentHash for AssignmentTargetPropertyIdentifier<'a> { +impl ContentHash for AssignmentTargetPropertyIdentifier<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.binding, state); ContentHash::content_hash(&self.init, state); } } -impl<'a> ContentHash for AssignmentTargetPropertyProperty<'a> { +impl ContentHash for AssignmentTargetPropertyProperty<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); ContentHash::content_hash(&self.binding, state); } } -impl<'a> ContentHash for SequenceExpression<'a> { +impl ContentHash for SequenceExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expressions, state); } @@ -625,19 +625,19 @@ impl ContentHash for Super { fn content_hash(&self, _: &mut H) {} } -impl<'a> ContentHash for AwaitExpression<'a> { +impl ContentHash for AwaitExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.argument, state); } } -impl<'a> ContentHash for ChainExpression<'a> { +impl ContentHash for ChainExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); } } -impl<'a> ContentHash for ChainElement<'a> { +impl ContentHash for ChainElement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -650,13 +650,13 @@ impl<'a> ContentHash for ChainElement<'a> { } } -impl<'a> ContentHash for ParenthesizedExpression<'a> { +impl ContentHash for ParenthesizedExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); } } -impl<'a> ContentHash for Statement<'a> { +impl ContentHash for Statement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -696,26 +696,26 @@ impl<'a> ContentHash for Statement<'a> { } } -impl<'a> ContentHash for Directive<'a> { +impl ContentHash for Directive<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); ContentHash::content_hash(&self.directive, state); } } -impl<'a> ContentHash for Hashbang<'a> { +impl ContentHash for Hashbang<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.value, state); } } -impl<'a> ContentHash for BlockStatement<'a> { +impl ContentHash for BlockStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for Declaration<'a> { +impl ContentHash for Declaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -731,7 +731,7 @@ impl<'a> ContentHash for Declaration<'a> { } } -impl<'a> ContentHash for VariableDeclaration<'a> { +impl ContentHash for VariableDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.kind, state); ContentHash::content_hash(&self.declarations, state); @@ -745,7 +745,7 @@ impl ContentHash for VariableDeclarationKind { } } -impl<'a> ContentHash for VariableDeclarator<'a> { +impl ContentHash for VariableDeclarator<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.kind, state); ContentHash::content_hash(&self.id, state); @@ -758,13 +758,13 @@ impl ContentHash for EmptyStatement { fn content_hash(&self, _: &mut H) {} } -impl<'a> ContentHash for ExpressionStatement<'a> { +impl ContentHash for ExpressionStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); } } -impl<'a> ContentHash for IfStatement<'a> { +impl ContentHash for IfStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.test, state); ContentHash::content_hash(&self.consequent, state); @@ -772,21 +772,21 @@ impl<'a> ContentHash for IfStatement<'a> { } } -impl<'a> ContentHash for DoWhileStatement<'a> { +impl ContentHash for DoWhileStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.body, state); ContentHash::content_hash(&self.test, state); } } -impl<'a> ContentHash for WhileStatement<'a> { +impl ContentHash for WhileStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.test, state); ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for ForStatement<'a> { +impl ContentHash for ForStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.init, state); ContentHash::content_hash(&self.test, state); @@ -795,7 +795,7 @@ impl<'a> ContentHash for ForStatement<'a> { } } -impl<'a> ContentHash for ForStatementInit<'a> { +impl ContentHash for ForStatementInit<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -846,7 +846,7 @@ impl<'a> ContentHash for ForStatementInit<'a> { } } -impl<'a> ContentHash for ForInStatement<'a> { +impl ContentHash for ForInStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.left, state); ContentHash::content_hash(&self.right, state); @@ -854,7 +854,7 @@ impl<'a> ContentHash for ForInStatement<'a> { } } -impl<'a> ContentHash for ForStatementLeft<'a> { +impl ContentHash for ForStatementLeft<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -874,7 +874,7 @@ impl<'a> ContentHash for ForStatementLeft<'a> { } } -impl<'a> ContentHash for ForOfStatement<'a> { +impl ContentHash for ForOfStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.r#await, state); ContentHash::content_hash(&self.left, state); @@ -883,59 +883,59 @@ impl<'a> ContentHash for ForOfStatement<'a> { } } -impl<'a> ContentHash for ContinueStatement<'a> { +impl ContentHash for ContinueStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.label, state); } } -impl<'a> ContentHash for BreakStatement<'a> { +impl ContentHash for BreakStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.label, state); } } -impl<'a> ContentHash for ReturnStatement<'a> { +impl ContentHash for ReturnStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.argument, state); } } -impl<'a> ContentHash for WithStatement<'a> { +impl ContentHash for WithStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.object, state); ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for SwitchStatement<'a> { +impl ContentHash for SwitchStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.discriminant, state); ContentHash::content_hash(&self.cases, state); } } -impl<'a> ContentHash for SwitchCase<'a> { +impl ContentHash for SwitchCase<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.test, state); ContentHash::content_hash(&self.consequent, state); } } -impl<'a> ContentHash for LabeledStatement<'a> { +impl ContentHash for LabeledStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.label, state); ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for ThrowStatement<'a> { +impl ContentHash for ThrowStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.argument, state); } } -impl<'a> ContentHash for TryStatement<'a> { +impl ContentHash for TryStatement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.block, state); ContentHash::content_hash(&self.handler, state); @@ -943,14 +943,14 @@ impl<'a> ContentHash for TryStatement<'a> { } } -impl<'a> ContentHash for CatchClause<'a> { +impl ContentHash for CatchClause<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.param, state); ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for CatchParameter<'a> { +impl ContentHash for CatchParameter<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.pattern, state); } @@ -960,7 +960,7 @@ impl ContentHash for DebuggerStatement { fn content_hash(&self, _: &mut H) {} } -impl<'a> ContentHash for BindingPattern<'a> { +impl ContentHash for BindingPattern<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.kind, state); ContentHash::content_hash(&self.type_annotation, state); @@ -968,7 +968,7 @@ impl<'a> ContentHash for BindingPattern<'a> { } } -impl<'a> ContentHash for BindingPatternKind<'a> { +impl ContentHash for BindingPatternKind<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -980,21 +980,21 @@ impl<'a> ContentHash for BindingPatternKind<'a> { } } -impl<'a> ContentHash for AssignmentPattern<'a> { +impl ContentHash for AssignmentPattern<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.left, state); ContentHash::content_hash(&self.right, state); } } -impl<'a> ContentHash for ObjectPattern<'a> { +impl ContentHash for ObjectPattern<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.properties, state); ContentHash::content_hash(&self.rest, state); } } -impl<'a> ContentHash for BindingProperty<'a> { +impl ContentHash for BindingProperty<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.key, state); ContentHash::content_hash(&self.value, state); @@ -1003,20 +1003,20 @@ impl<'a> ContentHash for BindingProperty<'a> { } } -impl<'a> ContentHash for ArrayPattern<'a> { +impl ContentHash for ArrayPattern<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.elements, state); ContentHash::content_hash(&self.rest, state); } } -impl<'a> ContentHash for BindingRestElement<'a> { +impl ContentHash for BindingRestElement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.argument, state); } } -impl<'a> ContentHash for Function<'a> { +impl ContentHash for Function<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.r#type, state); ContentHash::content_hash(&self.id, state); @@ -1037,7 +1037,7 @@ impl ContentHash for FunctionType { } } -impl<'a> ContentHash for FormalParameters<'a> { +impl ContentHash for FormalParameters<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.kind, state); ContentHash::content_hash(&self.items, state); @@ -1045,7 +1045,7 @@ impl<'a> ContentHash for FormalParameters<'a> { } } -impl<'a> ContentHash for FormalParameter<'a> { +impl ContentHash for FormalParameter<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.decorators, state); ContentHash::content_hash(&self.pattern, state); @@ -1061,14 +1061,14 @@ impl ContentHash for FormalParameterKind { } } -impl<'a> ContentHash for FunctionBody<'a> { +impl ContentHash for FunctionBody<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.directives, state); ContentHash::content_hash(&self.statements, state); } } -impl<'a> ContentHash for ArrowFunctionExpression<'a> { +impl ContentHash for ArrowFunctionExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); ContentHash::content_hash(&self.r#async, state); @@ -1079,14 +1079,14 @@ impl<'a> ContentHash for ArrowFunctionExpression<'a> { } } -impl<'a> ContentHash for YieldExpression<'a> { +impl ContentHash for YieldExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.delegate, state); ContentHash::content_hash(&self.argument, state); } } -impl<'a> ContentHash for Class<'a> { +impl ContentHash for Class<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.r#type, state); ContentHash::content_hash(&self.decorators, state); @@ -1107,13 +1107,13 @@ impl ContentHash for ClassType { } } -impl<'a> ContentHash for ClassBody<'a> { +impl ContentHash for ClassBody<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for ClassElement<'a> { +impl ContentHash for ClassElement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1126,7 +1126,7 @@ impl<'a> ContentHash for ClassElement<'a> { } } -impl<'a> ContentHash for MethodDefinition<'a> { +impl ContentHash for MethodDefinition<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.r#type, state); ContentHash::content_hash(&self.decorators, state); @@ -1147,7 +1147,7 @@ impl ContentHash for MethodDefinitionType { } } -impl<'a> ContentHash for PropertyDefinition<'a> { +impl ContentHash for PropertyDefinition<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.r#type, state); ContentHash::content_hash(&self.decorators, state); @@ -1177,19 +1177,19 @@ impl ContentHash for MethodDefinitionKind { } } -impl<'a> ContentHash for PrivateIdentifier<'a> { +impl ContentHash for PrivateIdentifier<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); } } -impl<'a> ContentHash for StaticBlock<'a> { +impl ContentHash for StaticBlock<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for ModuleDeclaration<'a> { +impl ContentHash for ModuleDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1209,7 +1209,7 @@ impl ContentHash for AccessorPropertyType { } } -impl<'a> ContentHash for AccessorProperty<'a> { +impl ContentHash for AccessorProperty<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.r#type, state); ContentHash::content_hash(&self.decorators, state); @@ -1223,14 +1223,14 @@ impl<'a> ContentHash for AccessorProperty<'a> { } } -impl<'a> ContentHash for ImportExpression<'a> { +impl ContentHash for ImportExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.source, state); ContentHash::content_hash(&self.arguments, state); } } -impl<'a> ContentHash for ImportDeclaration<'a> { +impl ContentHash for ImportDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.specifiers, state); ContentHash::content_hash(&self.source, state); @@ -1239,7 +1239,7 @@ impl<'a> ContentHash for ImportDeclaration<'a> { } } -impl<'a> ContentHash for ImportDeclarationSpecifier<'a> { +impl ContentHash for ImportDeclarationSpecifier<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1250,7 +1250,7 @@ impl<'a> ContentHash for ImportDeclarationSpecifier<'a> { } } -impl<'a> ContentHash for ImportSpecifier<'a> { +impl ContentHash for ImportSpecifier<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.imported, state); ContentHash::content_hash(&self.local, state); @@ -1258,33 +1258,33 @@ impl<'a> ContentHash for ImportSpecifier<'a> { } } -impl<'a> ContentHash for ImportDefaultSpecifier<'a> { +impl ContentHash for ImportDefaultSpecifier<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.local, state); } } -impl<'a> ContentHash for ImportNamespaceSpecifier<'a> { +impl ContentHash for ImportNamespaceSpecifier<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.local, state); } } -impl<'a> ContentHash for WithClause<'a> { +impl ContentHash for WithClause<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.attributes_keyword, state); ContentHash::content_hash(&self.with_entries, state); } } -impl<'a> ContentHash for ImportAttribute<'a> { +impl ContentHash for ImportAttribute<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.key, state); ContentHash::content_hash(&self.value, state); } } -impl<'a> ContentHash for ImportAttributeKey<'a> { +impl ContentHash for ImportAttributeKey<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1294,7 +1294,7 @@ impl<'a> ContentHash for ImportAttributeKey<'a> { } } -impl<'a> ContentHash for ExportNamedDeclaration<'a> { +impl ContentHash for ExportNamedDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.declaration, state); ContentHash::content_hash(&self.specifiers, state); @@ -1304,14 +1304,14 @@ impl<'a> ContentHash for ExportNamedDeclaration<'a> { } } -impl<'a> ContentHash for ExportDefaultDeclaration<'a> { +impl ContentHash for ExportDefaultDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.declaration, state); ContentHash::content_hash(&self.exported, state); } } -impl<'a> ContentHash for ExportAllDeclaration<'a> { +impl ContentHash for ExportAllDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.exported, state); ContentHash::content_hash(&self.source, state); @@ -1320,7 +1320,7 @@ impl<'a> ContentHash for ExportAllDeclaration<'a> { } } -impl<'a> ContentHash for ExportSpecifier<'a> { +impl ContentHash for ExportSpecifier<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.local, state); ContentHash::content_hash(&self.exported, state); @@ -1328,7 +1328,7 @@ impl<'a> ContentHash for ExportSpecifier<'a> { } } -impl<'a> ContentHash for ExportDefaultDeclarationKind<'a> { +impl ContentHash for ExportDefaultDeclarationKind<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1381,7 +1381,7 @@ impl<'a> ContentHash for ExportDefaultDeclarationKind<'a> { } } -impl<'a> ContentHash for ModuleExportName<'a> { +impl ContentHash for ModuleExportName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1392,13 +1392,13 @@ impl<'a> ContentHash for ModuleExportName<'a> { } } -impl<'a> ContentHash for TSThisParameter<'a> { +impl ContentHash for TSThisParameter<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_annotation, state); } } -impl<'a> ContentHash for TSEnumDeclaration<'a> { +impl ContentHash for TSEnumDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.id, state); ContentHash::content_hash(&self.members, state); @@ -1407,14 +1407,14 @@ impl<'a> ContentHash for TSEnumDeclaration<'a> { } } -impl<'a> ContentHash for TSEnumMember<'a> { +impl ContentHash for TSEnumMember<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.id, state); ContentHash::content_hash(&self.initializer, state); } } -impl<'a> ContentHash for TSEnumMemberName<'a> { +impl ContentHash for TSEnumMemberName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1424,19 +1424,19 @@ impl<'a> ContentHash for TSEnumMemberName<'a> { } } -impl<'a> ContentHash for TSTypeAnnotation<'a> { +impl ContentHash for TSTypeAnnotation<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_annotation, state); } } -impl<'a> ContentHash for TSLiteralType<'a> { +impl ContentHash for TSLiteralType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.literal, state); } } -impl<'a> ContentHash for TSLiteral<'a> { +impl ContentHash for TSLiteral<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1452,7 +1452,7 @@ impl<'a> ContentHash for TSLiteral<'a> { } } -impl<'a> ContentHash for TSType<'a> { +impl ContentHash for TSType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1498,7 +1498,7 @@ impl<'a> ContentHash for TSType<'a> { } } -impl<'a> ContentHash for TSConditionalType<'a> { +impl ContentHash for TSConditionalType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.check_type, state); ContentHash::content_hash(&self.extends_type, state); @@ -1507,25 +1507,25 @@ impl<'a> ContentHash for TSConditionalType<'a> { } } -impl<'a> ContentHash for TSUnionType<'a> { +impl ContentHash for TSUnionType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.types, state); } } -impl<'a> ContentHash for TSIntersectionType<'a> { +impl ContentHash for TSIntersectionType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.types, state); } } -impl<'a> ContentHash for TSParenthesizedType<'a> { +impl ContentHash for TSParenthesizedType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_annotation, state); } } -impl<'a> ContentHash for TSTypeOperator<'a> { +impl ContentHash for TSTypeOperator<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.operator, state); ContentHash::content_hash(&self.type_annotation, state); @@ -1538,26 +1538,26 @@ impl ContentHash for TSTypeOperatorOperator { } } -impl<'a> ContentHash for TSArrayType<'a> { +impl ContentHash for TSArrayType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.element_type, state); } } -impl<'a> ContentHash for TSIndexedAccessType<'a> { +impl ContentHash for TSIndexedAccessType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.object_type, state); ContentHash::content_hash(&self.index_type, state); } } -impl<'a> ContentHash for TSTupleType<'a> { +impl ContentHash for TSTupleType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.element_types, state); } } -impl<'a> ContentHash for TSNamedTupleMember<'a> { +impl ContentHash for TSNamedTupleMember<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.element_type, state); ContentHash::content_hash(&self.label, state); @@ -1565,19 +1565,19 @@ impl<'a> ContentHash for TSNamedTupleMember<'a> { } } -impl<'a> ContentHash for TSOptionalType<'a> { +impl ContentHash for TSOptionalType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_annotation, state); } } -impl<'a> ContentHash for TSRestType<'a> { +impl ContentHash for TSRestType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_annotation, state); } } -impl<'a> ContentHash for TSTupleElement<'a> { +impl ContentHash for TSTupleElement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1681,14 +1681,14 @@ impl ContentHash for TSBigIntKeyword { fn content_hash(&self, _: &mut H) {} } -impl<'a> ContentHash for TSTypeReference<'a> { +impl ContentHash for TSTypeReference<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_name, state); ContentHash::content_hash(&self.type_parameters, state); } } -impl<'a> ContentHash for TSTypeName<'a> { +impl ContentHash for TSTypeName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1698,20 +1698,20 @@ impl<'a> ContentHash for TSTypeName<'a> { } } -impl<'a> ContentHash for TSQualifiedName<'a> { +impl ContentHash for TSQualifiedName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.left, state); ContentHash::content_hash(&self.right, state); } } -impl<'a> ContentHash for TSTypeParameterInstantiation<'a> { +impl ContentHash for TSTypeParameterInstantiation<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.params, state); } } -impl<'a> ContentHash for TSTypeParameter<'a> { +impl ContentHash for TSTypeParameter<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); ContentHash::content_hash(&self.constraint, state); @@ -1722,13 +1722,13 @@ impl<'a> ContentHash for TSTypeParameter<'a> { } } -impl<'a> ContentHash for TSTypeParameterDeclaration<'a> { +impl ContentHash for TSTypeParameterDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.params, state); } } -impl<'a> ContentHash for TSTypeAliasDeclaration<'a> { +impl ContentHash for TSTypeAliasDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.id, state); ContentHash::content_hash(&self.type_parameters, state); @@ -1743,14 +1743,14 @@ impl ContentHash for TSAccessibility { } } -impl<'a> ContentHash for TSClassImplements<'a> { +impl ContentHash for TSClassImplements<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); ContentHash::content_hash(&self.type_parameters, state); } } -impl<'a> ContentHash for TSInterfaceDeclaration<'a> { +impl ContentHash for TSInterfaceDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.id, state); ContentHash::content_hash(&self.extends, state); @@ -1760,13 +1760,13 @@ impl<'a> ContentHash for TSInterfaceDeclaration<'a> { } } -impl<'a> ContentHash for TSInterfaceBody<'a> { +impl ContentHash for TSInterfaceBody<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for TSPropertySignature<'a> { +impl ContentHash for TSPropertySignature<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.computed, state); ContentHash::content_hash(&self.optional, state); @@ -1776,7 +1776,7 @@ impl<'a> ContentHash for TSPropertySignature<'a> { } } -impl<'a> ContentHash for TSSignature<'a> { +impl ContentHash for TSSignature<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1789,7 +1789,7 @@ impl<'a> ContentHash for TSSignature<'a> { } } -impl<'a> ContentHash for TSIndexSignature<'a> { +impl ContentHash for TSIndexSignature<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.parameters, state); ContentHash::content_hash(&self.type_annotation, state); @@ -1798,7 +1798,7 @@ impl<'a> ContentHash for TSIndexSignature<'a> { } } -impl<'a> ContentHash for TSCallSignatureDeclaration<'a> { +impl ContentHash for TSCallSignatureDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_parameters, state); ContentHash::content_hash(&self.this_param, state); @@ -1813,7 +1813,7 @@ impl ContentHash for TSMethodSignatureKind { } } -impl<'a> ContentHash for TSMethodSignature<'a> { +impl ContentHash for TSMethodSignature<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.key, state); ContentHash::content_hash(&self.computed, state); @@ -1826,7 +1826,7 @@ impl<'a> ContentHash for TSMethodSignature<'a> { } } -impl<'a> ContentHash for TSConstructSignatureDeclaration<'a> { +impl ContentHash for TSConstructSignatureDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_parameters, state); ContentHash::content_hash(&self.params, state); @@ -1834,21 +1834,21 @@ impl<'a> ContentHash for TSConstructSignatureDeclaration<'a> { } } -impl<'a> ContentHash for TSIndexSignatureName<'a> { +impl ContentHash for TSIndexSignatureName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); ContentHash::content_hash(&self.type_annotation, state); } } -impl<'a> ContentHash for TSInterfaceHeritage<'a> { +impl ContentHash for TSInterfaceHeritage<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); ContentHash::content_hash(&self.type_parameters, state); } } -impl<'a> ContentHash for TSTypePredicate<'a> { +impl ContentHash for TSTypePredicate<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.parameter_name, state); ContentHash::content_hash(&self.asserts, state); @@ -1856,7 +1856,7 @@ impl<'a> ContentHash for TSTypePredicate<'a> { } } -impl<'a> ContentHash for TSTypePredicateName<'a> { +impl ContentHash for TSTypePredicateName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1866,7 +1866,7 @@ impl<'a> ContentHash for TSTypePredicateName<'a> { } } -impl<'a> ContentHash for TSModuleDeclaration<'a> { +impl ContentHash for TSModuleDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.id, state); ContentHash::content_hash(&self.body, state); @@ -1881,7 +1881,7 @@ impl ContentHash for TSModuleDeclarationKind { } } -impl<'a> ContentHash for TSModuleDeclarationName<'a> { +impl ContentHash for TSModuleDeclarationName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1891,7 +1891,7 @@ impl<'a> ContentHash for TSModuleDeclarationName<'a> { } } -impl<'a> ContentHash for TSModuleDeclarationBody<'a> { +impl ContentHash for TSModuleDeclarationBody<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1901,33 +1901,33 @@ impl<'a> ContentHash for TSModuleDeclarationBody<'a> { } } -impl<'a> ContentHash for TSModuleBlock<'a> { +impl ContentHash for TSModuleBlock<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.directives, state); ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for TSTypeLiteral<'a> { +impl ContentHash for TSTypeLiteral<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.members, state); } } -impl<'a> ContentHash for TSInferType<'a> { +impl ContentHash for TSInferType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_parameter, state); } } -impl<'a> ContentHash for TSTypeQuery<'a> { +impl ContentHash for TSTypeQuery<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expr_name, state); ContentHash::content_hash(&self.type_parameters, state); } } -impl<'a> ContentHash for TSTypeQueryExprName<'a> { +impl ContentHash for TSTypeQueryExprName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1938,7 +1938,7 @@ impl<'a> ContentHash for TSTypeQueryExprName<'a> { } } -impl<'a> ContentHash for TSImportType<'a> { +impl ContentHash for TSImportType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.is_type_of, state); ContentHash::content_hash(&self.parameter, state); @@ -1948,21 +1948,21 @@ impl<'a> ContentHash for TSImportType<'a> { } } -impl<'a> ContentHash for TSImportAttributes<'a> { +impl ContentHash for TSImportAttributes<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.attributes_keyword, state); ContentHash::content_hash(&self.elements, state); } } -impl<'a> ContentHash for TSImportAttribute<'a> { +impl ContentHash for TSImportAttribute<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); ContentHash::content_hash(&self.value, state); } } -impl<'a> ContentHash for TSImportAttributeName<'a> { +impl ContentHash for TSImportAttributeName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -1972,7 +1972,7 @@ impl<'a> ContentHash for TSImportAttributeName<'a> { } } -impl<'a> ContentHash for TSFunctionType<'a> { +impl ContentHash for TSFunctionType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_parameters, state); ContentHash::content_hash(&self.this_param, state); @@ -1981,7 +1981,7 @@ impl<'a> ContentHash for TSFunctionType<'a> { } } -impl<'a> ContentHash for TSConstructorType<'a> { +impl ContentHash for TSConstructorType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.r#abstract, state); ContentHash::content_hash(&self.type_parameters, state); @@ -1990,7 +1990,7 @@ impl<'a> ContentHash for TSConstructorType<'a> { } } -impl<'a> ContentHash for TSMappedType<'a> { +impl ContentHash for TSMappedType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_parameter, state); ContentHash::content_hash(&self.name_type, state); @@ -2006,35 +2006,35 @@ impl ContentHash for TSMappedTypeModifierOperator { } } -impl<'a> ContentHash for TSTemplateLiteralType<'a> { +impl ContentHash for TSTemplateLiteralType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.quasis, state); ContentHash::content_hash(&self.types, state); } } -impl<'a> ContentHash for TSAsExpression<'a> { +impl ContentHash for TSAsExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); ContentHash::content_hash(&self.type_annotation, state); } } -impl<'a> ContentHash for TSSatisfiesExpression<'a> { +impl ContentHash for TSSatisfiesExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); ContentHash::content_hash(&self.type_annotation, state); } } -impl<'a> ContentHash for TSTypeAssertion<'a> { +impl ContentHash for TSTypeAssertion<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); ContentHash::content_hash(&self.type_annotation, state); } } -impl<'a> ContentHash for TSImportEqualsDeclaration<'a> { +impl ContentHash for TSImportEqualsDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.id, state); ContentHash::content_hash(&self.module_reference, state); @@ -2042,7 +2042,7 @@ impl<'a> ContentHash for TSImportEqualsDeclaration<'a> { } } -impl<'a> ContentHash for TSModuleReference<'a> { +impl ContentHash for TSModuleReference<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -2053,37 +2053,37 @@ impl<'a> ContentHash for TSModuleReference<'a> { } } -impl<'a> ContentHash for TSExternalModuleReference<'a> { +impl ContentHash for TSExternalModuleReference<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); } } -impl<'a> ContentHash for TSNonNullExpression<'a> { +impl ContentHash for TSNonNullExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); } } -impl<'a> ContentHash for Decorator<'a> { +impl ContentHash for Decorator<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); } } -impl<'a> ContentHash for TSExportAssignment<'a> { +impl ContentHash for TSExportAssignment<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); } } -impl<'a> ContentHash for TSNamespaceExportDeclaration<'a> { +impl ContentHash for TSNamespaceExportDeclaration<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.id, state); } } -impl<'a> ContentHash for TSInstantiationExpression<'a> { +impl ContentHash for TSInstantiationExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); ContentHash::content_hash(&self.type_parameters, state); @@ -2096,14 +2096,14 @@ impl ContentHash for ImportOrExportKind { } } -impl<'a> ContentHash for JSDocNullableType<'a> { +impl ContentHash for JSDocNullableType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_annotation, state); ContentHash::content_hash(&self.postfix, state); } } -impl<'a> ContentHash for JSDocNonNullableType<'a> { +impl ContentHash for JSDocNonNullableType<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.type_annotation, state); ContentHash::content_hash(&self.postfix, state); @@ -2114,7 +2114,7 @@ impl ContentHash for JSDocUnknownType { fn content_hash(&self, _: &mut H) {} } -impl<'a> ContentHash for JSXElement<'a> { +impl ContentHash for JSXElement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.opening_element, state); ContentHash::content_hash(&self.closing_element, state); @@ -2122,7 +2122,7 @@ impl<'a> ContentHash for JSXElement<'a> { } } -impl<'a> ContentHash for JSXOpeningElement<'a> { +impl ContentHash for JSXOpeningElement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.self_closing, state); ContentHash::content_hash(&self.name, state); @@ -2131,13 +2131,13 @@ impl<'a> ContentHash for JSXOpeningElement<'a> { } } -impl<'a> ContentHash for JSXClosingElement<'a> { +impl ContentHash for JSXClosingElement<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); } } -impl<'a> ContentHash for JSXFragment<'a> { +impl ContentHash for JSXFragment<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.opening_fragment, state); ContentHash::content_hash(&self.closing_fragment, state); @@ -2153,7 +2153,7 @@ impl ContentHash for JSXClosingFragment { fn content_hash(&self, _: &mut H) {} } -impl<'a> ContentHash for JSXElementName<'a> { +impl ContentHash for JSXElementName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -2166,21 +2166,21 @@ impl<'a> ContentHash for JSXElementName<'a> { } } -impl<'a> ContentHash for JSXNamespacedName<'a> { +impl ContentHash for JSXNamespacedName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.namespace, state); ContentHash::content_hash(&self.property, state); } } -impl<'a> ContentHash for JSXMemberExpression<'a> { +impl ContentHash for JSXMemberExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.object, state); ContentHash::content_hash(&self.property, state); } } -impl<'a> ContentHash for JSXMemberExpressionObject<'a> { +impl ContentHash for JSXMemberExpressionObject<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -2191,13 +2191,13 @@ impl<'a> ContentHash for JSXMemberExpressionObject<'a> { } } -impl<'a> ContentHash for JSXExpressionContainer<'a> { +impl ContentHash for JSXExpressionContainer<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); } } -impl<'a> ContentHash for JSXExpression<'a> { +impl ContentHash for JSXExpression<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -2252,7 +2252,7 @@ impl ContentHash for JSXEmptyExpression { fn content_hash(&self, _: &mut H) {} } -impl<'a> ContentHash for JSXAttributeItem<'a> { +impl ContentHash for JSXAttributeItem<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -2262,20 +2262,20 @@ impl<'a> ContentHash for JSXAttributeItem<'a> { } } -impl<'a> ContentHash for JSXAttribute<'a> { +impl ContentHash for JSXAttribute<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); ContentHash::content_hash(&self.value, state); } } -impl<'a> ContentHash for JSXSpreadAttribute<'a> { +impl ContentHash for JSXSpreadAttribute<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.argument, state); } } -impl<'a> ContentHash for JSXAttributeName<'a> { +impl ContentHash for JSXAttributeName<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -2285,7 +2285,7 @@ impl<'a> ContentHash for JSXAttributeName<'a> { } } -impl<'a> ContentHash for JSXAttributeValue<'a> { +impl ContentHash for JSXAttributeValue<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -2297,13 +2297,13 @@ impl<'a> ContentHash for JSXAttributeValue<'a> { } } -impl<'a> ContentHash for JSXIdentifier<'a> { +impl ContentHash for JSXIdentifier<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); } } -impl<'a> ContentHash for JSXChild<'a> { +impl ContentHash for JSXChild<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -2316,13 +2316,13 @@ impl<'a> ContentHash for JSXChild<'a> { } } -impl<'a> ContentHash for JSXSpreadChild<'a> { +impl ContentHash for JSXSpreadChild<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.expression, state); } } -impl<'a> ContentHash for JSXText<'a> { +impl ContentHash for JSXText<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.value, state); } diff --git a/crates/oxc_ast/src/generated/derive_estree.rs b/crates/oxc_ast/src/generated/derive_estree.rs index a1b369825816a..63d6d89ca5ecc 100644 --- a/crates/oxc_ast/src/generated/derive_estree.rs +++ b/crates/oxc_ast/src/generated/derive_estree.rs @@ -25,31 +25,31 @@ impl Serialize for NullLiteral { } } -impl<'a> Serialize for NumericLiteral<'a> { +impl Serialize for NumericLiteral<'_> { fn serialize(&self, serializer: S) -> Result { crate::serialize::ESTreeLiteral::from(self).serialize(serializer) } } -impl<'a> Serialize for StringLiteral<'a> { +impl Serialize for StringLiteral<'_> { fn serialize(&self, serializer: S) -> Result { crate::serialize::ESTreeLiteral::from(self).serialize(serializer) } } -impl<'a> Serialize for BigIntLiteral<'a> { +impl Serialize for BigIntLiteral<'_> { fn serialize(&self, serializer: S) -> Result { crate::serialize::ESTreeLiteral::from(self).serialize(serializer) } } -impl<'a> Serialize for RegExpLiteral<'a> { +impl Serialize for RegExpLiteral<'_> { fn serialize(&self, serializer: S) -> Result { crate::serialize::ESTreeLiteral::from(self).serialize(serializer) } } -impl<'a> Serialize for RegExp<'a> { +impl Serialize for RegExp<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("pattern", &self.pattern)?; @@ -58,7 +58,7 @@ impl<'a> Serialize for RegExp<'a> { } } -impl<'a> Serialize for RegExpPattern<'a> { +impl Serialize for RegExpPattern<'_> { fn serialize(&self, serializer: S) -> Result { match self { RegExpPattern::Raw(x) => Serialize::serialize(x, serializer), @@ -68,7 +68,7 @@ impl<'a> Serialize for RegExpPattern<'a> { } } -impl<'a> Serialize for Program<'a> { +impl Serialize for Program<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Program")?; @@ -81,7 +81,7 @@ impl<'a> Serialize for Program<'a> { } } -impl<'a> Serialize for Expression<'a> { +impl Serialize for Expression<'_> { fn serialize(&self, serializer: S) -> Result { match self { Expression::BooleanLiteral(x) => Serialize::serialize(x, serializer), @@ -130,7 +130,7 @@ impl<'a> Serialize for Expression<'a> { } } -impl<'a> Serialize for IdentifierName<'a> { +impl Serialize for IdentifierName<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Identifier")?; @@ -140,7 +140,7 @@ impl<'a> Serialize for IdentifierName<'a> { } } -impl<'a> Serialize for IdentifierReference<'a> { +impl Serialize for IdentifierReference<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Identifier")?; @@ -150,7 +150,7 @@ impl<'a> Serialize for IdentifierReference<'a> { } } -impl<'a> Serialize for BindingIdentifier<'a> { +impl Serialize for BindingIdentifier<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Identifier")?; @@ -160,7 +160,7 @@ impl<'a> Serialize for BindingIdentifier<'a> { } } -impl<'a> Serialize for LabelIdentifier<'a> { +impl Serialize for LabelIdentifier<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Identifier")?; @@ -179,7 +179,7 @@ impl Serialize for ThisExpression { } } -impl<'a> Serialize for ArrayExpression<'a> { +impl Serialize for ArrayExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ArrayExpression")?; @@ -189,7 +189,7 @@ impl<'a> Serialize for ArrayExpression<'a> { } } -impl<'a> Serialize for ArrayExpressionElement<'a> { +impl Serialize for ArrayExpressionElement<'_> { fn serialize(&self, serializer: S) -> Result { match self { ArrayExpressionElement::SpreadElement(x) => Serialize::serialize(x, serializer), @@ -254,7 +254,7 @@ impl<'a> Serialize for ArrayExpressionElement<'a> { } } -impl<'a> Serialize for ObjectExpression<'a> { +impl Serialize for ObjectExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ObjectExpression")?; @@ -264,7 +264,7 @@ impl<'a> Serialize for ObjectExpression<'a> { } } -impl<'a> Serialize for ObjectPropertyKind<'a> { +impl Serialize for ObjectPropertyKind<'_> { fn serialize(&self, serializer: S) -> Result { match self { ObjectPropertyKind::ObjectProperty(x) => Serialize::serialize(x, serializer), @@ -273,7 +273,7 @@ impl<'a> Serialize for ObjectPropertyKind<'a> { } } -impl<'a> Serialize for ObjectProperty<'a> { +impl Serialize for ObjectProperty<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ObjectProperty")?; @@ -288,7 +288,7 @@ impl<'a> Serialize for ObjectProperty<'a> { } } -impl<'a> Serialize for PropertyKey<'a> { +impl Serialize for PropertyKey<'_> { fn serialize(&self, serializer: S) -> Result { match self { PropertyKey::StaticIdentifier(x) => Serialize::serialize(x, serializer), @@ -349,7 +349,7 @@ impl Serialize for PropertyKind { } } -impl<'a> Serialize for TemplateLiteral<'a> { +impl Serialize for TemplateLiteral<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TemplateLiteral")?; @@ -360,7 +360,7 @@ impl<'a> Serialize for TemplateLiteral<'a> { } } -impl<'a> Serialize for TaggedTemplateExpression<'a> { +impl Serialize for TaggedTemplateExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TaggedTemplateExpression")?; @@ -372,7 +372,7 @@ impl<'a> Serialize for TaggedTemplateExpression<'a> { } } -impl<'a> Serialize for TemplateElement<'a> { +impl Serialize for TemplateElement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TemplateElement")?; @@ -383,7 +383,7 @@ impl<'a> Serialize for TemplateElement<'a> { } } -impl<'a> Serialize for TemplateElementValue<'a> { +impl Serialize for TemplateElementValue<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("raw", &self.raw)?; @@ -392,7 +392,7 @@ impl<'a> Serialize for TemplateElementValue<'a> { } } -impl<'a> Serialize for MemberExpression<'a> { +impl Serialize for MemberExpression<'_> { fn serialize(&self, serializer: S) -> Result { match self { MemberExpression::ComputedMemberExpression(x) => Serialize::serialize(x, serializer), @@ -402,7 +402,7 @@ impl<'a> Serialize for MemberExpression<'a> { } } -impl<'a> Serialize for ComputedMemberExpression<'a> { +impl Serialize for ComputedMemberExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ComputedMemberExpression")?; @@ -414,7 +414,7 @@ impl<'a> Serialize for ComputedMemberExpression<'a> { } } -impl<'a> Serialize for StaticMemberExpression<'a> { +impl Serialize for StaticMemberExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "StaticMemberExpression")?; @@ -426,7 +426,7 @@ impl<'a> Serialize for StaticMemberExpression<'a> { } } -impl<'a> Serialize for PrivateFieldExpression<'a> { +impl Serialize for PrivateFieldExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "PrivateFieldExpression")?; @@ -438,7 +438,7 @@ impl<'a> Serialize for PrivateFieldExpression<'a> { } } -impl<'a> Serialize for CallExpression<'a> { +impl Serialize for CallExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "CallExpression")?; @@ -451,7 +451,7 @@ impl<'a> Serialize for CallExpression<'a> { } } -impl<'a> Serialize for NewExpression<'a> { +impl Serialize for NewExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "NewExpression")?; @@ -463,7 +463,7 @@ impl<'a> Serialize for NewExpression<'a> { } } -impl<'a> Serialize for MetaProperty<'a> { +impl Serialize for MetaProperty<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "MetaProperty")?; @@ -474,7 +474,7 @@ impl<'a> Serialize for MetaProperty<'a> { } } -impl<'a> Serialize for SpreadElement<'a> { +impl Serialize for SpreadElement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "SpreadElement")?; @@ -484,7 +484,7 @@ impl<'a> Serialize for SpreadElement<'a> { } } -impl<'a> Serialize for Argument<'a> { +impl Serialize for Argument<'_> { fn serialize(&self, serializer: S) -> Result { match self { Argument::SpreadElement(x) => Serialize::serialize(x, serializer), @@ -534,7 +534,7 @@ impl<'a> Serialize for Argument<'a> { } } -impl<'a> Serialize for UpdateExpression<'a> { +impl Serialize for UpdateExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "UpdateExpression")?; @@ -546,7 +546,7 @@ impl<'a> Serialize for UpdateExpression<'a> { } } -impl<'a> Serialize for UnaryExpression<'a> { +impl Serialize for UnaryExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "UnaryExpression")?; @@ -557,7 +557,7 @@ impl<'a> Serialize for UnaryExpression<'a> { } } -impl<'a> Serialize for BinaryExpression<'a> { +impl Serialize for BinaryExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "BinaryExpression")?; @@ -569,7 +569,7 @@ impl<'a> Serialize for BinaryExpression<'a> { } } -impl<'a> Serialize for PrivateInExpression<'a> { +impl Serialize for PrivateInExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "PrivateInExpression")?; @@ -581,7 +581,7 @@ impl<'a> Serialize for PrivateInExpression<'a> { } } -impl<'a> Serialize for LogicalExpression<'a> { +impl Serialize for LogicalExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "LogicalExpression")?; @@ -593,7 +593,7 @@ impl<'a> Serialize for LogicalExpression<'a> { } } -impl<'a> Serialize for ConditionalExpression<'a> { +impl Serialize for ConditionalExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ConditionalExpression")?; @@ -605,7 +605,7 @@ impl<'a> Serialize for ConditionalExpression<'a> { } } -impl<'a> Serialize for AssignmentExpression<'a> { +impl Serialize for AssignmentExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "AssignmentExpression")?; @@ -617,7 +617,7 @@ impl<'a> Serialize for AssignmentExpression<'a> { } } -impl<'a> Serialize for AssignmentTarget<'a> { +impl Serialize for AssignmentTarget<'_> { fn serialize(&self, serializer: S) -> Result { match self { AssignmentTarget::AssignmentTargetIdentifier(x) => Serialize::serialize(x, serializer), @@ -635,7 +635,7 @@ impl<'a> Serialize for AssignmentTarget<'a> { } } -impl<'a> Serialize for SimpleAssignmentTarget<'a> { +impl Serialize for SimpleAssignmentTarget<'_> { fn serialize(&self, serializer: S) -> Result { match self { SimpleAssignmentTarget::AssignmentTargetIdentifier(x) => { @@ -661,7 +661,7 @@ impl<'a> Serialize for SimpleAssignmentTarget<'a> { } } -impl<'a> Serialize for AssignmentTargetPattern<'a> { +impl Serialize for AssignmentTargetPattern<'_> { fn serialize(&self, serializer: S) -> Result { match self { AssignmentTargetPattern::ArrayAssignmentTarget(x) => { @@ -674,7 +674,7 @@ impl<'a> Serialize for AssignmentTargetPattern<'a> { } } -impl<'a> Serialize for ArrayAssignmentTarget<'a> { +impl Serialize for ArrayAssignmentTarget<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ArrayAssignmentTarget")?; @@ -687,7 +687,7 @@ impl<'a> Serialize for ArrayAssignmentTarget<'a> { } } -impl<'a> Serialize for ObjectAssignmentTarget<'a> { +impl Serialize for ObjectAssignmentTarget<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ObjectAssignmentTarget")?; @@ -700,7 +700,7 @@ impl<'a> Serialize for ObjectAssignmentTarget<'a> { } } -impl<'a> Serialize for AssignmentTargetRest<'a> { +impl Serialize for AssignmentTargetRest<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "RestElement")?; @@ -710,7 +710,7 @@ impl<'a> Serialize for AssignmentTargetRest<'a> { } } -impl<'a> Serialize for AssignmentTargetMaybeDefault<'a> { +impl Serialize for AssignmentTargetMaybeDefault<'_> { fn serialize(&self, serializer: S) -> Result { match self { AssignmentTargetMaybeDefault::AssignmentTargetWithDefault(x) => { @@ -749,7 +749,7 @@ impl<'a> Serialize for AssignmentTargetMaybeDefault<'a> { } } -impl<'a> Serialize for AssignmentTargetWithDefault<'a> { +impl Serialize for AssignmentTargetWithDefault<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "AssignmentTargetWithDefault")?; @@ -760,7 +760,7 @@ impl<'a> Serialize for AssignmentTargetWithDefault<'a> { } } -impl<'a> Serialize for AssignmentTargetProperty<'a> { +impl Serialize for AssignmentTargetProperty<'_> { fn serialize(&self, serializer: S) -> Result { match self { AssignmentTargetProperty::AssignmentTargetPropertyIdentifier(x) => { @@ -773,7 +773,7 @@ impl<'a> Serialize for AssignmentTargetProperty<'a> { } } -impl<'a> Serialize for AssignmentTargetPropertyIdentifier<'a> { +impl Serialize for AssignmentTargetPropertyIdentifier<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "AssignmentTargetPropertyIdentifier")?; @@ -784,7 +784,7 @@ impl<'a> Serialize for AssignmentTargetPropertyIdentifier<'a> { } } -impl<'a> Serialize for AssignmentTargetPropertyProperty<'a> { +impl Serialize for AssignmentTargetPropertyProperty<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "AssignmentTargetPropertyProperty")?; @@ -795,7 +795,7 @@ impl<'a> Serialize for AssignmentTargetPropertyProperty<'a> { } } -impl<'a> Serialize for SequenceExpression<'a> { +impl Serialize for SequenceExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "SequenceExpression")?; @@ -814,7 +814,7 @@ impl Serialize for Super { } } -impl<'a> Serialize for AwaitExpression<'a> { +impl Serialize for AwaitExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "AwaitExpression")?; @@ -824,7 +824,7 @@ impl<'a> Serialize for AwaitExpression<'a> { } } -impl<'a> Serialize for ChainExpression<'a> { +impl Serialize for ChainExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ChainExpression")?; @@ -834,7 +834,7 @@ impl<'a> Serialize for ChainExpression<'a> { } } -impl<'a> Serialize for ChainElement<'a> { +impl Serialize for ChainElement<'_> { fn serialize(&self, serializer: S) -> Result { match self { ChainElement::CallExpression(x) => Serialize::serialize(x, serializer), @@ -846,7 +846,7 @@ impl<'a> Serialize for ChainElement<'a> { } } -impl<'a> Serialize for ParenthesizedExpression<'a> { +impl Serialize for ParenthesizedExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ParenthesizedExpression")?; @@ -856,7 +856,7 @@ impl<'a> Serialize for ParenthesizedExpression<'a> { } } -impl<'a> Serialize for Statement<'a> { +impl Serialize for Statement<'_> { fn serialize(&self, serializer: S) -> Result { match self { Statement::BlockStatement(x) => Serialize::serialize(x, serializer), @@ -895,7 +895,7 @@ impl<'a> Serialize for Statement<'a> { } } -impl<'a> Serialize for Directive<'a> { +impl Serialize for Directive<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Directive")?; @@ -906,7 +906,7 @@ impl<'a> Serialize for Directive<'a> { } } -impl<'a> Serialize for Hashbang<'a> { +impl Serialize for Hashbang<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Hashbang")?; @@ -916,7 +916,7 @@ impl<'a> Serialize for Hashbang<'a> { } } -impl<'a> Serialize for BlockStatement<'a> { +impl Serialize for BlockStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "BlockStatement")?; @@ -926,7 +926,7 @@ impl<'a> Serialize for BlockStatement<'a> { } } -impl<'a> Serialize for Declaration<'a> { +impl Serialize for Declaration<'_> { fn serialize(&self, serializer: S) -> Result { match self { Declaration::VariableDeclaration(x) => Serialize::serialize(x, serializer), @@ -941,7 +941,7 @@ impl<'a> Serialize for Declaration<'a> { } } -impl<'a> Serialize for VariableDeclaration<'a> { +impl Serialize for VariableDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "VariableDeclaration")?; @@ -975,7 +975,7 @@ impl Serialize for VariableDeclarationKind { } } -impl<'a> Serialize for VariableDeclarator<'a> { +impl Serialize for VariableDeclarator<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "VariableDeclarator")?; @@ -996,7 +996,7 @@ impl Serialize for EmptyStatement { } } -impl<'a> Serialize for ExpressionStatement<'a> { +impl Serialize for ExpressionStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ExpressionStatement")?; @@ -1006,7 +1006,7 @@ impl<'a> Serialize for ExpressionStatement<'a> { } } -impl<'a> Serialize for IfStatement<'a> { +impl Serialize for IfStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "IfStatement")?; @@ -1018,7 +1018,7 @@ impl<'a> Serialize for IfStatement<'a> { } } -impl<'a> Serialize for DoWhileStatement<'a> { +impl Serialize for DoWhileStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "DoWhileStatement")?; @@ -1029,7 +1029,7 @@ impl<'a> Serialize for DoWhileStatement<'a> { } } -impl<'a> Serialize for WhileStatement<'a> { +impl Serialize for WhileStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "WhileStatement")?; @@ -1040,7 +1040,7 @@ impl<'a> Serialize for WhileStatement<'a> { } } -impl<'a> Serialize for ForStatement<'a> { +impl Serialize for ForStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ForStatement")?; @@ -1053,7 +1053,7 @@ impl<'a> Serialize for ForStatement<'a> { } } -impl<'a> Serialize for ForStatementInit<'a> { +impl Serialize for ForStatementInit<'_> { fn serialize(&self, serializer: S) -> Result { match self { ForStatementInit::VariableDeclaration(x) => Serialize::serialize(x, serializer), @@ -1103,7 +1103,7 @@ impl<'a> Serialize for ForStatementInit<'a> { } } -impl<'a> Serialize for ForInStatement<'a> { +impl Serialize for ForInStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ForInStatement")?; @@ -1115,7 +1115,7 @@ impl<'a> Serialize for ForInStatement<'a> { } } -impl<'a> Serialize for ForStatementLeft<'a> { +impl Serialize for ForStatementLeft<'_> { fn serialize(&self, serializer: S) -> Result { match self { ForStatementLeft::VariableDeclaration(x) => Serialize::serialize(x, serializer), @@ -1134,7 +1134,7 @@ impl<'a> Serialize for ForStatementLeft<'a> { } } -impl<'a> Serialize for ForOfStatement<'a> { +impl Serialize for ForOfStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ForOfStatement")?; @@ -1147,7 +1147,7 @@ impl<'a> Serialize for ForOfStatement<'a> { } } -impl<'a> Serialize for ContinueStatement<'a> { +impl Serialize for ContinueStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ContinueStatement")?; @@ -1157,7 +1157,7 @@ impl<'a> Serialize for ContinueStatement<'a> { } } -impl<'a> Serialize for BreakStatement<'a> { +impl Serialize for BreakStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "BreakStatement")?; @@ -1167,7 +1167,7 @@ impl<'a> Serialize for BreakStatement<'a> { } } -impl<'a> Serialize for ReturnStatement<'a> { +impl Serialize for ReturnStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ReturnStatement")?; @@ -1177,7 +1177,7 @@ impl<'a> Serialize for ReturnStatement<'a> { } } -impl<'a> Serialize for WithStatement<'a> { +impl Serialize for WithStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "WithStatement")?; @@ -1188,7 +1188,7 @@ impl<'a> Serialize for WithStatement<'a> { } } -impl<'a> Serialize for SwitchStatement<'a> { +impl Serialize for SwitchStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "SwitchStatement")?; @@ -1199,7 +1199,7 @@ impl<'a> Serialize for SwitchStatement<'a> { } } -impl<'a> Serialize for SwitchCase<'a> { +impl Serialize for SwitchCase<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "SwitchCase")?; @@ -1210,7 +1210,7 @@ impl<'a> Serialize for SwitchCase<'a> { } } -impl<'a> Serialize for LabeledStatement<'a> { +impl Serialize for LabeledStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "LabeledStatement")?; @@ -1221,7 +1221,7 @@ impl<'a> Serialize for LabeledStatement<'a> { } } -impl<'a> Serialize for ThrowStatement<'a> { +impl Serialize for ThrowStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ThrowStatement")?; @@ -1231,7 +1231,7 @@ impl<'a> Serialize for ThrowStatement<'a> { } } -impl<'a> Serialize for TryStatement<'a> { +impl Serialize for TryStatement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TryStatement")?; @@ -1243,7 +1243,7 @@ impl<'a> Serialize for TryStatement<'a> { } } -impl<'a> Serialize for CatchClause<'a> { +impl Serialize for CatchClause<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "CatchClause")?; @@ -1254,7 +1254,7 @@ impl<'a> Serialize for CatchClause<'a> { } } -impl<'a> Serialize for CatchParameter<'a> { +impl Serialize for CatchParameter<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "CatchParameter")?; @@ -1273,7 +1273,7 @@ impl Serialize for DebuggerStatement { } } -impl<'a> Serialize for BindingPattern<'a> { +impl Serialize for BindingPattern<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; self.kind.serialize(serde::__private::ser::FlatMapSerializer(&mut map))?; @@ -1283,7 +1283,7 @@ impl<'a> Serialize for BindingPattern<'a> { } } -impl<'a> Serialize for BindingPatternKind<'a> { +impl Serialize for BindingPatternKind<'_> { fn serialize(&self, serializer: S) -> Result { match self { BindingPatternKind::BindingIdentifier(x) => Serialize::serialize(x, serializer), @@ -1294,7 +1294,7 @@ impl<'a> Serialize for BindingPatternKind<'a> { } } -impl<'a> Serialize for AssignmentPattern<'a> { +impl Serialize for AssignmentPattern<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "AssignmentPattern")?; @@ -1305,7 +1305,7 @@ impl<'a> Serialize for AssignmentPattern<'a> { } } -impl<'a> Serialize for ObjectPattern<'a> { +impl Serialize for ObjectPattern<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ObjectPattern")?; @@ -1318,7 +1318,7 @@ impl<'a> Serialize for ObjectPattern<'a> { } } -impl<'a> Serialize for BindingProperty<'a> { +impl Serialize for BindingProperty<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "BindingProperty")?; @@ -1331,7 +1331,7 @@ impl<'a> Serialize for BindingProperty<'a> { } } -impl<'a> Serialize for ArrayPattern<'a> { +impl Serialize for ArrayPattern<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ArrayPattern")?; @@ -1344,7 +1344,7 @@ impl<'a> Serialize for ArrayPattern<'a> { } } -impl<'a> Serialize for BindingRestElement<'a> { +impl Serialize for BindingRestElement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "RestElement")?; @@ -1354,7 +1354,7 @@ impl<'a> Serialize for BindingRestElement<'a> { } } -impl<'a> Serialize for Function<'a> { +impl Serialize for Function<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", &self.r#type)?; @@ -1393,7 +1393,7 @@ impl Serialize for FunctionType { } } -impl<'a> Serialize for FormalParameter<'a> { +impl Serialize for FormalParameter<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "FormalParameter")?; @@ -1430,7 +1430,7 @@ impl Serialize for FormalParameterKind { } } -impl<'a> Serialize for FunctionBody<'a> { +impl Serialize for FunctionBody<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "FunctionBody")?; @@ -1441,7 +1441,7 @@ impl<'a> Serialize for FunctionBody<'a> { } } -impl<'a> Serialize for ArrowFunctionExpression<'a> { +impl Serialize for ArrowFunctionExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ArrowFunctionExpression")?; @@ -1456,7 +1456,7 @@ impl<'a> Serialize for ArrowFunctionExpression<'a> { } } -impl<'a> Serialize for YieldExpression<'a> { +impl Serialize for YieldExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "YieldExpression")?; @@ -1467,7 +1467,7 @@ impl<'a> Serialize for YieldExpression<'a> { } } -impl<'a> Serialize for Class<'a> { +impl Serialize for Class<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", &self.r#type)?; @@ -1498,7 +1498,7 @@ impl Serialize for ClassType { } } -impl<'a> Serialize for ClassBody<'a> { +impl Serialize for ClassBody<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ClassBody")?; @@ -1508,7 +1508,7 @@ impl<'a> Serialize for ClassBody<'a> { } } -impl<'a> Serialize for ClassElement<'a> { +impl Serialize for ClassElement<'_> { fn serialize(&self, serializer: S) -> Result { match self { ClassElement::StaticBlock(x) => Serialize::serialize(x, serializer), @@ -1520,7 +1520,7 @@ impl<'a> Serialize for ClassElement<'a> { } } -impl<'a> Serialize for MethodDefinition<'a> { +impl Serialize for MethodDefinition<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", &self.r#type)?; @@ -1553,7 +1553,7 @@ impl Serialize for MethodDefinitionType { } } -impl<'a> Serialize for PropertyDefinition<'a> { +impl Serialize for PropertyDefinition<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", &self.r#type)?; @@ -1611,7 +1611,7 @@ impl Serialize for MethodDefinitionKind { } } -impl<'a> Serialize for PrivateIdentifier<'a> { +impl Serialize for PrivateIdentifier<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "PrivateIdentifier")?; @@ -1621,7 +1621,7 @@ impl<'a> Serialize for PrivateIdentifier<'a> { } } -impl<'a> Serialize for StaticBlock<'a> { +impl Serialize for StaticBlock<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "StaticBlock")?; @@ -1631,7 +1631,7 @@ impl<'a> Serialize for StaticBlock<'a> { } } -impl<'a> Serialize for ModuleDeclaration<'a> { +impl Serialize for ModuleDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { match self { ModuleDeclaration::ImportDeclaration(x) => Serialize::serialize(x, serializer), @@ -1661,7 +1661,7 @@ impl Serialize for AccessorPropertyType { } } -impl<'a> Serialize for AccessorProperty<'a> { +impl Serialize for AccessorProperty<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", &self.r#type)?; @@ -1678,7 +1678,7 @@ impl<'a> Serialize for AccessorProperty<'a> { } } -impl<'a> Serialize for ImportExpression<'a> { +impl Serialize for ImportExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ImportExpression")?; @@ -1689,7 +1689,7 @@ impl<'a> Serialize for ImportExpression<'a> { } } -impl<'a> Serialize for ImportDeclaration<'a> { +impl Serialize for ImportDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ImportDeclaration")?; @@ -1702,7 +1702,7 @@ impl<'a> Serialize for ImportDeclaration<'a> { } } -impl<'a> Serialize for ImportDeclarationSpecifier<'a> { +impl Serialize for ImportDeclarationSpecifier<'_> { fn serialize(&self, serializer: S) -> Result { match self { ImportDeclarationSpecifier::ImportSpecifier(x) => Serialize::serialize(x, serializer), @@ -1716,7 +1716,7 @@ impl<'a> Serialize for ImportDeclarationSpecifier<'a> { } } -impl<'a> Serialize for ImportSpecifier<'a> { +impl Serialize for ImportSpecifier<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ImportSpecifier")?; @@ -1728,7 +1728,7 @@ impl<'a> Serialize for ImportSpecifier<'a> { } } -impl<'a> Serialize for ImportDefaultSpecifier<'a> { +impl Serialize for ImportDefaultSpecifier<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ImportDefaultSpecifier")?; @@ -1738,7 +1738,7 @@ impl<'a> Serialize for ImportDefaultSpecifier<'a> { } } -impl<'a> Serialize for ImportNamespaceSpecifier<'a> { +impl Serialize for ImportNamespaceSpecifier<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ImportNamespaceSpecifier")?; @@ -1748,7 +1748,7 @@ impl<'a> Serialize for ImportNamespaceSpecifier<'a> { } } -impl<'a> Serialize for WithClause<'a> { +impl Serialize for WithClause<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "WithClause")?; @@ -1759,7 +1759,7 @@ impl<'a> Serialize for WithClause<'a> { } } -impl<'a> Serialize for ImportAttribute<'a> { +impl Serialize for ImportAttribute<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ImportAttribute")?; @@ -1770,7 +1770,7 @@ impl<'a> Serialize for ImportAttribute<'a> { } } -impl<'a> Serialize for ImportAttributeKey<'a> { +impl Serialize for ImportAttributeKey<'_> { fn serialize(&self, serializer: S) -> Result { match self { ImportAttributeKey::Identifier(x) => Serialize::serialize(x, serializer), @@ -1779,7 +1779,7 @@ impl<'a> Serialize for ImportAttributeKey<'a> { } } -impl<'a> Serialize for ExportNamedDeclaration<'a> { +impl Serialize for ExportNamedDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ExportNamedDeclaration")?; @@ -1793,7 +1793,7 @@ impl<'a> Serialize for ExportNamedDeclaration<'a> { } } -impl<'a> Serialize for ExportDefaultDeclaration<'a> { +impl Serialize for ExportDefaultDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ExportDefaultDeclaration")?; @@ -1804,7 +1804,7 @@ impl<'a> Serialize for ExportDefaultDeclaration<'a> { } } -impl<'a> Serialize for ExportAllDeclaration<'a> { +impl Serialize for ExportAllDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ExportAllDeclaration")?; @@ -1817,7 +1817,7 @@ impl<'a> Serialize for ExportAllDeclaration<'a> { } } -impl<'a> Serialize for ExportSpecifier<'a> { +impl Serialize for ExportSpecifier<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ExportSpecifier")?; @@ -1829,7 +1829,7 @@ impl<'a> Serialize for ExportSpecifier<'a> { } } -impl<'a> Serialize for ExportDefaultDeclarationKind<'a> { +impl Serialize for ExportDefaultDeclarationKind<'_> { fn serialize(&self, serializer: S) -> Result { match self { ExportDefaultDeclarationKind::FunctionDeclaration(x) => { @@ -1925,7 +1925,7 @@ impl<'a> Serialize for ExportDefaultDeclarationKind<'a> { } } -impl<'a> Serialize for ModuleExportName<'a> { +impl Serialize for ModuleExportName<'_> { fn serialize(&self, serializer: S) -> Result { match self { ModuleExportName::IdentifierName(x) => Serialize::serialize(x, serializer), @@ -1935,7 +1935,7 @@ impl<'a> Serialize for ModuleExportName<'a> { } } -impl<'a> Serialize for TSThisParameter<'a> { +impl Serialize for TSThisParameter<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSThisParameter")?; @@ -1945,7 +1945,7 @@ impl<'a> Serialize for TSThisParameter<'a> { } } -impl<'a> Serialize for TSEnumDeclaration<'a> { +impl Serialize for TSEnumDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSEnumDeclaration")?; @@ -1958,7 +1958,7 @@ impl<'a> Serialize for TSEnumDeclaration<'a> { } } -impl<'a> Serialize for TSEnumMember<'a> { +impl Serialize for TSEnumMember<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSEnumMember")?; @@ -1969,7 +1969,7 @@ impl<'a> Serialize for TSEnumMember<'a> { } } -impl<'a> Serialize for TSEnumMemberName<'a> { +impl Serialize for TSEnumMemberName<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSEnumMemberName::Identifier(x) => Serialize::serialize(x, serializer), @@ -1978,7 +1978,7 @@ impl<'a> Serialize for TSEnumMemberName<'a> { } } -impl<'a> Serialize for TSTypeAnnotation<'a> { +impl Serialize for TSTypeAnnotation<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTypeAnnotation")?; @@ -1988,7 +1988,7 @@ impl<'a> Serialize for TSTypeAnnotation<'a> { } } -impl<'a> Serialize for TSLiteralType<'a> { +impl Serialize for TSLiteralType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSLiteralType")?; @@ -1998,7 +1998,7 @@ impl<'a> Serialize for TSLiteralType<'a> { } } -impl<'a> Serialize for TSLiteral<'a> { +impl Serialize for TSLiteral<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSLiteral::BooleanLiteral(x) => Serialize::serialize(x, serializer), @@ -2013,7 +2013,7 @@ impl<'a> Serialize for TSLiteral<'a> { } } -impl<'a> Serialize for TSType<'a> { +impl Serialize for TSType<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSType::TSAnyKeyword(x) => Serialize::serialize(x, serializer), @@ -2058,7 +2058,7 @@ impl<'a> Serialize for TSType<'a> { } } -impl<'a> Serialize for TSConditionalType<'a> { +impl Serialize for TSConditionalType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSConditionalType")?; @@ -2071,7 +2071,7 @@ impl<'a> Serialize for TSConditionalType<'a> { } } -impl<'a> Serialize for TSUnionType<'a> { +impl Serialize for TSUnionType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSUnionType")?; @@ -2081,7 +2081,7 @@ impl<'a> Serialize for TSUnionType<'a> { } } -impl<'a> Serialize for TSIntersectionType<'a> { +impl Serialize for TSIntersectionType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSIntersectionType")?; @@ -2091,7 +2091,7 @@ impl<'a> Serialize for TSIntersectionType<'a> { } } -impl<'a> Serialize for TSParenthesizedType<'a> { +impl Serialize for TSParenthesizedType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSParenthesizedType")?; @@ -2101,7 +2101,7 @@ impl<'a> Serialize for TSParenthesizedType<'a> { } } -impl<'a> Serialize for TSTypeOperator<'a> { +impl Serialize for TSTypeOperator<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTypeOperator")?; @@ -2128,7 +2128,7 @@ impl Serialize for TSTypeOperatorOperator { } } -impl<'a> Serialize for TSArrayType<'a> { +impl Serialize for TSArrayType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSArrayType")?; @@ -2138,7 +2138,7 @@ impl<'a> Serialize for TSArrayType<'a> { } } -impl<'a> Serialize for TSIndexedAccessType<'a> { +impl Serialize for TSIndexedAccessType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSIndexedAccessType")?; @@ -2149,7 +2149,7 @@ impl<'a> Serialize for TSIndexedAccessType<'a> { } } -impl<'a> Serialize for TSTupleType<'a> { +impl Serialize for TSTupleType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTupleType")?; @@ -2159,7 +2159,7 @@ impl<'a> Serialize for TSTupleType<'a> { } } -impl<'a> Serialize for TSNamedTupleMember<'a> { +impl Serialize for TSNamedTupleMember<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSNamedTupleMember")?; @@ -2171,7 +2171,7 @@ impl<'a> Serialize for TSNamedTupleMember<'a> { } } -impl<'a> Serialize for TSOptionalType<'a> { +impl Serialize for TSOptionalType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSOptionalType")?; @@ -2181,7 +2181,7 @@ impl<'a> Serialize for TSOptionalType<'a> { } } -impl<'a> Serialize for TSRestType<'a> { +impl Serialize for TSRestType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSRestType")?; @@ -2191,7 +2191,7 @@ impl<'a> Serialize for TSRestType<'a> { } } -impl<'a> Serialize for TSTupleElement<'a> { +impl Serialize for TSTupleElement<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSTupleElement::TSOptionalType(x) => Serialize::serialize(x, serializer), @@ -2364,7 +2364,7 @@ impl Serialize for TSBigIntKeyword { } } -impl<'a> Serialize for TSTypeReference<'a> { +impl Serialize for TSTypeReference<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTypeReference")?; @@ -2375,7 +2375,7 @@ impl<'a> Serialize for TSTypeReference<'a> { } } -impl<'a> Serialize for TSTypeName<'a> { +impl Serialize for TSTypeName<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSTypeName::IdentifierReference(x) => Serialize::serialize(x, serializer), @@ -2384,7 +2384,7 @@ impl<'a> Serialize for TSTypeName<'a> { } } -impl<'a> Serialize for TSQualifiedName<'a> { +impl Serialize for TSQualifiedName<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSQualifiedName")?; @@ -2395,7 +2395,7 @@ impl<'a> Serialize for TSQualifiedName<'a> { } } -impl<'a> Serialize for TSTypeParameterInstantiation<'a> { +impl Serialize for TSTypeParameterInstantiation<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTypeParameterInstantiation")?; @@ -2405,7 +2405,7 @@ impl<'a> Serialize for TSTypeParameterInstantiation<'a> { } } -impl<'a> Serialize for TSTypeParameter<'a> { +impl Serialize for TSTypeParameter<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTypeParameter")?; @@ -2420,7 +2420,7 @@ impl<'a> Serialize for TSTypeParameter<'a> { } } -impl<'a> Serialize for TSTypeParameterDeclaration<'a> { +impl Serialize for TSTypeParameterDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTypeParameterDeclaration")?; @@ -2430,7 +2430,7 @@ impl<'a> Serialize for TSTypeParameterDeclaration<'a> { } } -impl<'a> Serialize for TSTypeAliasDeclaration<'a> { +impl Serialize for TSTypeAliasDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTypeAliasDeclaration")?; @@ -2459,7 +2459,7 @@ impl Serialize for TSAccessibility { } } -impl<'a> Serialize for TSClassImplements<'a> { +impl Serialize for TSClassImplements<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSClassImplements")?; @@ -2470,7 +2470,7 @@ impl<'a> Serialize for TSClassImplements<'a> { } } -impl<'a> Serialize for TSInterfaceDeclaration<'a> { +impl Serialize for TSInterfaceDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSInterfaceDeclaration")?; @@ -2484,7 +2484,7 @@ impl<'a> Serialize for TSInterfaceDeclaration<'a> { } } -impl<'a> Serialize for TSInterfaceBody<'a> { +impl Serialize for TSInterfaceBody<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSInterfaceBody")?; @@ -2494,7 +2494,7 @@ impl<'a> Serialize for TSInterfaceBody<'a> { } } -impl<'a> Serialize for TSPropertySignature<'a> { +impl Serialize for TSPropertySignature<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSPropertySignature")?; @@ -2508,7 +2508,7 @@ impl<'a> Serialize for TSPropertySignature<'a> { } } -impl<'a> Serialize for TSSignature<'a> { +impl Serialize for TSSignature<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSSignature::TSIndexSignature(x) => Serialize::serialize(x, serializer), @@ -2520,7 +2520,7 @@ impl<'a> Serialize for TSSignature<'a> { } } -impl<'a> Serialize for TSIndexSignature<'a> { +impl Serialize for TSIndexSignature<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSIndexSignature")?; @@ -2533,7 +2533,7 @@ impl<'a> Serialize for TSIndexSignature<'a> { } } -impl<'a> Serialize for TSCallSignatureDeclaration<'a> { +impl Serialize for TSCallSignatureDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSCallSignatureDeclaration")?; @@ -2562,7 +2562,7 @@ impl Serialize for TSMethodSignatureKind { } } -impl<'a> Serialize for TSMethodSignature<'a> { +impl Serialize for TSMethodSignature<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSMethodSignature")?; @@ -2579,7 +2579,7 @@ impl<'a> Serialize for TSMethodSignature<'a> { } } -impl<'a> Serialize for TSConstructSignatureDeclaration<'a> { +impl Serialize for TSConstructSignatureDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSConstructSignatureDeclaration")?; @@ -2591,7 +2591,7 @@ impl<'a> Serialize for TSConstructSignatureDeclaration<'a> { } } -impl<'a> Serialize for TSIndexSignatureName<'a> { +impl Serialize for TSIndexSignatureName<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Identifier")?; @@ -2602,7 +2602,7 @@ impl<'a> Serialize for TSIndexSignatureName<'a> { } } -impl<'a> Serialize for TSInterfaceHeritage<'a> { +impl Serialize for TSInterfaceHeritage<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSInterfaceHeritage")?; @@ -2613,7 +2613,7 @@ impl<'a> Serialize for TSInterfaceHeritage<'a> { } } -impl<'a> Serialize for TSTypePredicate<'a> { +impl Serialize for TSTypePredicate<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTypePredicate")?; @@ -2625,7 +2625,7 @@ impl<'a> Serialize for TSTypePredicate<'a> { } } -impl<'a> Serialize for TSTypePredicateName<'a> { +impl Serialize for TSTypePredicateName<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSTypePredicateName::Identifier(x) => Serialize::serialize(x, serializer), @@ -2634,7 +2634,7 @@ impl<'a> Serialize for TSTypePredicateName<'a> { } } -impl<'a> Serialize for TSModuleDeclaration<'a> { +impl Serialize for TSModuleDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSModuleDeclaration")?; @@ -2663,7 +2663,7 @@ impl Serialize for TSModuleDeclarationKind { } } -impl<'a> Serialize for TSModuleDeclarationName<'a> { +impl Serialize for TSModuleDeclarationName<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSModuleDeclarationName::Identifier(x) => Serialize::serialize(x, serializer), @@ -2672,7 +2672,7 @@ impl<'a> Serialize for TSModuleDeclarationName<'a> { } } -impl<'a> Serialize for TSModuleDeclarationBody<'a> { +impl Serialize for TSModuleDeclarationBody<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSModuleDeclarationBody::TSModuleDeclaration(x) => Serialize::serialize(x, serializer), @@ -2681,7 +2681,7 @@ impl<'a> Serialize for TSModuleDeclarationBody<'a> { } } -impl<'a> Serialize for TSTypeLiteral<'a> { +impl Serialize for TSTypeLiteral<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTypeLiteral")?; @@ -2691,7 +2691,7 @@ impl<'a> Serialize for TSTypeLiteral<'a> { } } -impl<'a> Serialize for TSInferType<'a> { +impl Serialize for TSInferType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSInferType")?; @@ -2701,7 +2701,7 @@ impl<'a> Serialize for TSInferType<'a> { } } -impl<'a> Serialize for TSTypeQuery<'a> { +impl Serialize for TSTypeQuery<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTypeQuery")?; @@ -2712,7 +2712,7 @@ impl<'a> Serialize for TSTypeQuery<'a> { } } -impl<'a> Serialize for TSTypeQueryExprName<'a> { +impl Serialize for TSTypeQueryExprName<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSTypeQueryExprName::TSImportType(x) => Serialize::serialize(x, serializer), @@ -2722,7 +2722,7 @@ impl<'a> Serialize for TSTypeQueryExprName<'a> { } } -impl<'a> Serialize for TSImportType<'a> { +impl Serialize for TSImportType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSImportType")?; @@ -2736,7 +2736,7 @@ impl<'a> Serialize for TSImportType<'a> { } } -impl<'a> Serialize for TSImportAttributes<'a> { +impl Serialize for TSImportAttributes<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSImportAttributes")?; @@ -2747,7 +2747,7 @@ impl<'a> Serialize for TSImportAttributes<'a> { } } -impl<'a> Serialize for TSImportAttribute<'a> { +impl Serialize for TSImportAttribute<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSImportAttribute")?; @@ -2758,7 +2758,7 @@ impl<'a> Serialize for TSImportAttribute<'a> { } } -impl<'a> Serialize for TSImportAttributeName<'a> { +impl Serialize for TSImportAttributeName<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSImportAttributeName::Identifier(x) => Serialize::serialize(x, serializer), @@ -2767,7 +2767,7 @@ impl<'a> Serialize for TSImportAttributeName<'a> { } } -impl<'a> Serialize for TSFunctionType<'a> { +impl Serialize for TSFunctionType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSFunctionType")?; @@ -2780,7 +2780,7 @@ impl<'a> Serialize for TSFunctionType<'a> { } } -impl<'a> Serialize for TSConstructorType<'a> { +impl Serialize for TSConstructorType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSConstructorType")?; @@ -2793,7 +2793,7 @@ impl<'a> Serialize for TSConstructorType<'a> { } } -impl<'a> Serialize for TSMappedType<'a> { +impl Serialize for TSMappedType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSMappedType")?; @@ -2826,7 +2826,7 @@ impl Serialize for TSMappedTypeModifierOperator { } } -impl<'a> Serialize for TSTemplateLiteralType<'a> { +impl Serialize for TSTemplateLiteralType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTemplateLiteralType")?; @@ -2837,7 +2837,7 @@ impl<'a> Serialize for TSTemplateLiteralType<'a> { } } -impl<'a> Serialize for TSAsExpression<'a> { +impl Serialize for TSAsExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSAsExpression")?; @@ -2848,7 +2848,7 @@ impl<'a> Serialize for TSAsExpression<'a> { } } -impl<'a> Serialize for TSSatisfiesExpression<'a> { +impl Serialize for TSSatisfiesExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSSatisfiesExpression")?; @@ -2859,7 +2859,7 @@ impl<'a> Serialize for TSSatisfiesExpression<'a> { } } -impl<'a> Serialize for TSTypeAssertion<'a> { +impl Serialize for TSTypeAssertion<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSTypeAssertion")?; @@ -2870,7 +2870,7 @@ impl<'a> Serialize for TSTypeAssertion<'a> { } } -impl<'a> Serialize for TSImportEqualsDeclaration<'a> { +impl Serialize for TSImportEqualsDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSImportEqualsDeclaration")?; @@ -2882,7 +2882,7 @@ impl<'a> Serialize for TSImportEqualsDeclaration<'a> { } } -impl<'a> Serialize for TSModuleReference<'a> { +impl Serialize for TSModuleReference<'_> { fn serialize(&self, serializer: S) -> Result { match self { TSModuleReference::ExternalModuleReference(x) => Serialize::serialize(x, serializer), @@ -2892,7 +2892,7 @@ impl<'a> Serialize for TSModuleReference<'a> { } } -impl<'a> Serialize for TSExternalModuleReference<'a> { +impl Serialize for TSExternalModuleReference<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSExternalModuleReference")?; @@ -2902,7 +2902,7 @@ impl<'a> Serialize for TSExternalModuleReference<'a> { } } -impl<'a> Serialize for TSNonNullExpression<'a> { +impl Serialize for TSNonNullExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSNonNullExpression")?; @@ -2912,7 +2912,7 @@ impl<'a> Serialize for TSNonNullExpression<'a> { } } -impl<'a> Serialize for Decorator<'a> { +impl Serialize for Decorator<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Decorator")?; @@ -2922,7 +2922,7 @@ impl<'a> Serialize for Decorator<'a> { } } -impl<'a> Serialize for TSExportAssignment<'a> { +impl Serialize for TSExportAssignment<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSExportAssignment")?; @@ -2932,7 +2932,7 @@ impl<'a> Serialize for TSExportAssignment<'a> { } } -impl<'a> Serialize for TSNamespaceExportDeclaration<'a> { +impl Serialize for TSNamespaceExportDeclaration<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSNamespaceExportDeclaration")?; @@ -2942,7 +2942,7 @@ impl<'a> Serialize for TSNamespaceExportDeclaration<'a> { } } -impl<'a> Serialize for TSInstantiationExpression<'a> { +impl Serialize for TSInstantiationExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "TSInstantiationExpression")?; @@ -2966,7 +2966,7 @@ impl Serialize for ImportOrExportKind { } } -impl<'a> Serialize for JSDocNullableType<'a> { +impl Serialize for JSDocNullableType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSDocNullableType")?; @@ -2977,7 +2977,7 @@ impl<'a> Serialize for JSDocNullableType<'a> { } } -impl<'a> Serialize for JSDocNonNullableType<'a> { +impl Serialize for JSDocNonNullableType<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSDocNonNullableType")?; @@ -2997,7 +2997,7 @@ impl Serialize for JSDocUnknownType { } } -impl<'a> Serialize for JSXElement<'a> { +impl Serialize for JSXElement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXElement")?; @@ -3009,7 +3009,7 @@ impl<'a> Serialize for JSXElement<'a> { } } -impl<'a> Serialize for JSXOpeningElement<'a> { +impl Serialize for JSXOpeningElement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXOpeningElement")?; @@ -3022,7 +3022,7 @@ impl<'a> Serialize for JSXOpeningElement<'a> { } } -impl<'a> Serialize for JSXClosingElement<'a> { +impl Serialize for JSXClosingElement<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXClosingElement")?; @@ -3032,7 +3032,7 @@ impl<'a> Serialize for JSXClosingElement<'a> { } } -impl<'a> Serialize for JSXFragment<'a> { +impl Serialize for JSXFragment<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXFragment")?; @@ -3062,7 +3062,7 @@ impl Serialize for JSXClosingFragment { } } -impl<'a> Serialize for JSXNamespacedName<'a> { +impl Serialize for JSXNamespacedName<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXNamespacedName")?; @@ -3073,7 +3073,7 @@ impl<'a> Serialize for JSXNamespacedName<'a> { } } -impl<'a> Serialize for JSXMemberExpression<'a> { +impl Serialize for JSXMemberExpression<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXMemberExpression")?; @@ -3084,7 +3084,7 @@ impl<'a> Serialize for JSXMemberExpression<'a> { } } -impl<'a> Serialize for JSXExpressionContainer<'a> { +impl Serialize for JSXExpressionContainer<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXExpressionContainer")?; @@ -3094,7 +3094,7 @@ impl<'a> Serialize for JSXExpressionContainer<'a> { } } -impl<'a> Serialize for JSXExpression<'a> { +impl Serialize for JSXExpression<'_> { fn serialize(&self, serializer: S) -> Result { match self { JSXExpression::EmptyExpression(x) => Serialize::serialize(x, serializer), @@ -3153,7 +3153,7 @@ impl Serialize for JSXEmptyExpression { } } -impl<'a> Serialize for JSXAttributeItem<'a> { +impl Serialize for JSXAttributeItem<'_> { fn serialize(&self, serializer: S) -> Result { match self { JSXAttributeItem::Attribute(x) => Serialize::serialize(x, serializer), @@ -3162,7 +3162,7 @@ impl<'a> Serialize for JSXAttributeItem<'a> { } } -impl<'a> Serialize for JSXAttribute<'a> { +impl Serialize for JSXAttribute<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXAttribute")?; @@ -3173,7 +3173,7 @@ impl<'a> Serialize for JSXAttribute<'a> { } } -impl<'a> Serialize for JSXSpreadAttribute<'a> { +impl Serialize for JSXSpreadAttribute<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXSpreadAttribute")?; @@ -3183,7 +3183,7 @@ impl<'a> Serialize for JSXSpreadAttribute<'a> { } } -impl<'a> Serialize for JSXAttributeName<'a> { +impl Serialize for JSXAttributeName<'_> { fn serialize(&self, serializer: S) -> Result { match self { JSXAttributeName::Identifier(x) => Serialize::serialize(x, serializer), @@ -3192,7 +3192,7 @@ impl<'a> Serialize for JSXAttributeName<'a> { } } -impl<'a> Serialize for JSXAttributeValue<'a> { +impl Serialize for JSXAttributeValue<'_> { fn serialize(&self, serializer: S) -> Result { match self { JSXAttributeValue::StringLiteral(x) => Serialize::serialize(x, serializer), @@ -3203,7 +3203,7 @@ impl<'a> Serialize for JSXAttributeValue<'a> { } } -impl<'a> Serialize for JSXIdentifier<'a> { +impl Serialize for JSXIdentifier<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXIdentifier")?; @@ -3213,7 +3213,7 @@ impl<'a> Serialize for JSXIdentifier<'a> { } } -impl<'a> Serialize for JSXChild<'a> { +impl Serialize for JSXChild<'_> { fn serialize(&self, serializer: S) -> Result { match self { JSXChild::Text(x) => Serialize::serialize(x, serializer), @@ -3225,7 +3225,7 @@ impl<'a> Serialize for JSXChild<'a> { } } -impl<'a> Serialize for JSXSpreadChild<'a> { +impl Serialize for JSXSpreadChild<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXSpreadChild")?; @@ -3235,7 +3235,7 @@ impl<'a> Serialize for JSXSpreadChild<'a> { } } -impl<'a> Serialize for JSXText<'a> { +impl Serialize for JSXText<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "JSXText")?; diff --git a/crates/oxc_ast/src/generated/derive_get_address.rs b/crates/oxc_ast/src/generated/derive_get_address.rs index eb7038100cfb7..4720429bf0714 100644 --- a/crates/oxc_ast/src/generated/derive_get_address.rs +++ b/crates/oxc_ast/src/generated/derive_get_address.rs @@ -11,7 +11,7 @@ use crate::ast::jsx::*; use crate::ast::ts::*; -impl<'a> GetAddress for Expression<'a> { +impl GetAddress for Expression<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -62,7 +62,7 @@ impl<'a> GetAddress for Expression<'a> { } } -impl<'a> GetAddress for ObjectPropertyKind<'a> { +impl GetAddress for ObjectPropertyKind<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -73,7 +73,7 @@ impl<'a> GetAddress for ObjectPropertyKind<'a> { } } -impl<'a> GetAddress for PropertyKey<'a> { +impl GetAddress for PropertyKey<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -126,7 +126,7 @@ impl<'a> GetAddress for PropertyKey<'a> { } } -impl<'a> GetAddress for MemberExpression<'a> { +impl GetAddress for MemberExpression<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -138,7 +138,7 @@ impl<'a> GetAddress for MemberExpression<'a> { } } -impl<'a> GetAddress for Argument<'a> { +impl GetAddress for Argument<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -190,7 +190,7 @@ impl<'a> GetAddress for Argument<'a> { } } -impl<'a> GetAddress for AssignmentTarget<'a> { +impl GetAddress for AssignmentTarget<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -210,7 +210,7 @@ impl<'a> GetAddress for AssignmentTarget<'a> { } } -impl<'a> GetAddress for SimpleAssignmentTarget<'a> { +impl GetAddress for SimpleAssignmentTarget<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -228,7 +228,7 @@ impl<'a> GetAddress for SimpleAssignmentTarget<'a> { } } -impl<'a> GetAddress for AssignmentTargetPattern<'a> { +impl GetAddress for AssignmentTargetPattern<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -239,7 +239,7 @@ impl<'a> GetAddress for AssignmentTargetPattern<'a> { } } -impl<'a> GetAddress for AssignmentTargetMaybeDefault<'a> { +impl GetAddress for AssignmentTargetMaybeDefault<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -260,7 +260,7 @@ impl<'a> GetAddress for AssignmentTargetMaybeDefault<'a> { } } -impl<'a> GetAddress for AssignmentTargetProperty<'a> { +impl GetAddress for AssignmentTargetProperty<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -271,7 +271,7 @@ impl<'a> GetAddress for AssignmentTargetProperty<'a> { } } -impl<'a> GetAddress for ChainElement<'a> { +impl GetAddress for ChainElement<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -285,7 +285,7 @@ impl<'a> GetAddress for ChainElement<'a> { } } -impl<'a> GetAddress for Statement<'a> { +impl GetAddress for Statement<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -326,7 +326,7 @@ impl<'a> GetAddress for Statement<'a> { } } -impl<'a> GetAddress for Declaration<'a> { +impl GetAddress for Declaration<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -343,7 +343,7 @@ impl<'a> GetAddress for Declaration<'a> { } } -impl<'a> GetAddress for ForStatementInit<'a> { +impl GetAddress for ForStatementInit<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -395,7 +395,7 @@ impl<'a> GetAddress for ForStatementInit<'a> { } } -impl<'a> GetAddress for ForStatementLeft<'a> { +impl GetAddress for ForStatementLeft<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -416,7 +416,7 @@ impl<'a> GetAddress for ForStatementLeft<'a> { } } -impl<'a> GetAddress for BindingPatternKind<'a> { +impl GetAddress for BindingPatternKind<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -429,7 +429,7 @@ impl<'a> GetAddress for BindingPatternKind<'a> { } } -impl<'a> GetAddress for ClassElement<'a> { +impl GetAddress for ClassElement<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -443,7 +443,7 @@ impl<'a> GetAddress for ClassElement<'a> { } } -impl<'a> GetAddress for ModuleDeclaration<'a> { +impl GetAddress for ModuleDeclaration<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -458,7 +458,7 @@ impl<'a> GetAddress for ModuleDeclaration<'a> { } } -impl<'a> GetAddress for ImportDeclarationSpecifier<'a> { +impl GetAddress for ImportDeclarationSpecifier<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -470,7 +470,7 @@ impl<'a> GetAddress for ImportDeclarationSpecifier<'a> { } } -impl<'a> GetAddress for ExportDefaultDeclarationKind<'a> { +impl GetAddress for ExportDefaultDeclarationKind<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -524,7 +524,7 @@ impl<'a> GetAddress for ExportDefaultDeclarationKind<'a> { } } -impl<'a> GetAddress for TSEnumMemberName<'a> { +impl GetAddress for TSEnumMemberName<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -535,7 +535,7 @@ impl<'a> GetAddress for TSEnumMemberName<'a> { } } -impl<'a> GetAddress for TSLiteral<'a> { +impl GetAddress for TSLiteral<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -552,7 +552,7 @@ impl<'a> GetAddress for TSLiteral<'a> { } } -impl<'a> GetAddress for TSType<'a> { +impl GetAddress for TSType<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -599,7 +599,7 @@ impl<'a> GetAddress for TSType<'a> { } } -impl<'a> GetAddress for TSTupleElement<'a> { +impl GetAddress for TSTupleElement<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -648,7 +648,7 @@ impl<'a> GetAddress for TSTupleElement<'a> { } } -impl<'a> GetAddress for TSTypeName<'a> { +impl GetAddress for TSTypeName<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -659,7 +659,7 @@ impl<'a> GetAddress for TSTypeName<'a> { } } -impl<'a> GetAddress for TSSignature<'a> { +impl GetAddress for TSSignature<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -673,7 +673,7 @@ impl<'a> GetAddress for TSSignature<'a> { } } -impl<'a> GetAddress for TSModuleDeclarationBody<'a> { +impl GetAddress for TSModuleDeclarationBody<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -684,7 +684,7 @@ impl<'a> GetAddress for TSModuleDeclarationBody<'a> { } } -impl<'a> GetAddress for TSTypeQueryExprName<'a> { +impl GetAddress for TSTypeQueryExprName<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -696,7 +696,7 @@ impl<'a> GetAddress for TSTypeQueryExprName<'a> { } } -impl<'a> GetAddress for TSModuleReference<'a> { +impl GetAddress for TSModuleReference<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -708,7 +708,7 @@ impl<'a> GetAddress for TSModuleReference<'a> { } } -impl<'a> GetAddress for JSXElementName<'a> { +impl GetAddress for JSXElementName<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -722,7 +722,7 @@ impl<'a> GetAddress for JSXElementName<'a> { } } -impl<'a> GetAddress for JSXMemberExpressionObject<'a> { +impl GetAddress for JSXMemberExpressionObject<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -734,7 +734,7 @@ impl<'a> GetAddress for JSXMemberExpressionObject<'a> { } } -impl<'a> GetAddress for JSXAttributeItem<'a> { +impl GetAddress for JSXAttributeItem<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -745,7 +745,7 @@ impl<'a> GetAddress for JSXAttributeItem<'a> { } } -impl<'a> GetAddress for JSXAttributeName<'a> { +impl GetAddress for JSXAttributeName<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -756,7 +756,7 @@ impl<'a> GetAddress for JSXAttributeName<'a> { } } -impl<'a> GetAddress for JSXAttributeValue<'a> { +impl GetAddress for JSXAttributeValue<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { @@ -769,7 +769,7 @@ impl<'a> GetAddress for JSXAttributeValue<'a> { } } -impl<'a> GetAddress for JSXChild<'a> { +impl GetAddress for JSXChild<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { diff --git a/crates/oxc_ast/src/generated/derive_get_span.rs b/crates/oxc_ast/src/generated/derive_get_span.rs index d74eb2c546a49..c32a785521248 100644 --- a/crates/oxc_ast/src/generated/derive_get_span.rs +++ b/crates/oxc_ast/src/generated/derive_get_span.rs @@ -27,42 +27,42 @@ impl GetSpan for NullLiteral { } } -impl<'a> GetSpan for NumericLiteral<'a> { +impl GetSpan for NumericLiteral<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for StringLiteral<'a> { +impl GetSpan for StringLiteral<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for BigIntLiteral<'a> { +impl GetSpan for BigIntLiteral<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for RegExpLiteral<'a> { +impl GetSpan for RegExpLiteral<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for Program<'a> { +impl GetSpan for Program<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for Expression<'a> { +impl GetSpan for Expression<'_> { fn span(&self) -> Span { match self { Self::BooleanLiteral(it) => GetSpan::span(it.as_ref()), @@ -111,28 +111,28 @@ impl<'a> GetSpan for Expression<'a> { } } -impl<'a> GetSpan for IdentifierName<'a> { +impl GetSpan for IdentifierName<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for IdentifierReference<'a> { +impl GetSpan for IdentifierReference<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for BindingIdentifier<'a> { +impl GetSpan for BindingIdentifier<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for LabelIdentifier<'a> { +impl GetSpan for LabelIdentifier<'_> { #[inline] fn span(&self) -> Span { self.span @@ -146,14 +146,14 @@ impl GetSpan for ThisExpression { } } -impl<'a> GetSpan for ArrayExpression<'a> { +impl GetSpan for ArrayExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ArrayExpressionElement<'a> { +impl GetSpan for ArrayExpressionElement<'_> { fn span(&self) -> Span { match self { Self::SpreadElement(it) => GetSpan::span(it.as_ref()), @@ -211,14 +211,14 @@ impl GetSpan for Elision { } } -impl<'a> GetSpan for ObjectExpression<'a> { +impl GetSpan for ObjectExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ObjectPropertyKind<'a> { +impl GetSpan for ObjectPropertyKind<'_> { fn span(&self) -> Span { match self { Self::ObjectProperty(it) => GetSpan::span(it.as_ref()), @@ -227,14 +227,14 @@ impl<'a> GetSpan for ObjectPropertyKind<'a> { } } -impl<'a> GetSpan for ObjectProperty<'a> { +impl GetSpan for ObjectProperty<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for PropertyKey<'a> { +impl GetSpan for PropertyKey<'_> { fn span(&self) -> Span { match self { Self::StaticIdentifier(it) => GetSpan::span(it.as_ref()), @@ -285,28 +285,28 @@ impl<'a> GetSpan for PropertyKey<'a> { } } -impl<'a> GetSpan for TemplateLiteral<'a> { +impl GetSpan for TemplateLiteral<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TaggedTemplateExpression<'a> { +impl GetSpan for TaggedTemplateExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TemplateElement<'a> { +impl GetSpan for TemplateElement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for MemberExpression<'a> { +impl GetSpan for MemberExpression<'_> { fn span(&self) -> Span { match self { Self::ComputedMemberExpression(it) => GetSpan::span(it.as_ref()), @@ -316,56 +316,56 @@ impl<'a> GetSpan for MemberExpression<'a> { } } -impl<'a> GetSpan for ComputedMemberExpression<'a> { +impl GetSpan for ComputedMemberExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for StaticMemberExpression<'a> { +impl GetSpan for StaticMemberExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for PrivateFieldExpression<'a> { +impl GetSpan for PrivateFieldExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for CallExpression<'a> { +impl GetSpan for CallExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for NewExpression<'a> { +impl GetSpan for NewExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for MetaProperty<'a> { +impl GetSpan for MetaProperty<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for SpreadElement<'a> { +impl GetSpan for SpreadElement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for Argument<'a> { +impl GetSpan for Argument<'_> { fn span(&self) -> Span { match self { Self::SpreadElement(it) => GetSpan::span(it.as_ref()), @@ -415,56 +415,56 @@ impl<'a> GetSpan for Argument<'a> { } } -impl<'a> GetSpan for UpdateExpression<'a> { +impl GetSpan for UpdateExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for UnaryExpression<'a> { +impl GetSpan for UnaryExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for BinaryExpression<'a> { +impl GetSpan for BinaryExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for PrivateInExpression<'a> { +impl GetSpan for PrivateInExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for LogicalExpression<'a> { +impl GetSpan for LogicalExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ConditionalExpression<'a> { +impl GetSpan for ConditionalExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for AssignmentExpression<'a> { +impl GetSpan for AssignmentExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for AssignmentTarget<'a> { +impl GetSpan for AssignmentTarget<'_> { fn span(&self) -> Span { match self { Self::AssignmentTargetIdentifier(it) => GetSpan::span(it.as_ref()), @@ -482,7 +482,7 @@ impl<'a> GetSpan for AssignmentTarget<'a> { } } -impl<'a> GetSpan for SimpleAssignmentTarget<'a> { +impl GetSpan for SimpleAssignmentTarget<'_> { fn span(&self) -> Span { match self { Self::AssignmentTargetIdentifier(it) => GetSpan::span(it.as_ref()), @@ -498,7 +498,7 @@ impl<'a> GetSpan for SimpleAssignmentTarget<'a> { } } -impl<'a> GetSpan for AssignmentTargetPattern<'a> { +impl GetSpan for AssignmentTargetPattern<'_> { fn span(&self) -> Span { match self { Self::ArrayAssignmentTarget(it) => GetSpan::span(it.as_ref()), @@ -507,28 +507,28 @@ impl<'a> GetSpan for AssignmentTargetPattern<'a> { } } -impl<'a> GetSpan for ArrayAssignmentTarget<'a> { +impl GetSpan for ArrayAssignmentTarget<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ObjectAssignmentTarget<'a> { +impl GetSpan for ObjectAssignmentTarget<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for AssignmentTargetRest<'a> { +impl GetSpan for AssignmentTargetRest<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for AssignmentTargetMaybeDefault<'a> { +impl GetSpan for AssignmentTargetMaybeDefault<'_> { fn span(&self) -> Span { match self { Self::AssignmentTargetWithDefault(it) => GetSpan::span(it.as_ref()), @@ -547,14 +547,14 @@ impl<'a> GetSpan for AssignmentTargetMaybeDefault<'a> { } } -impl<'a> GetSpan for AssignmentTargetWithDefault<'a> { +impl GetSpan for AssignmentTargetWithDefault<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for AssignmentTargetProperty<'a> { +impl GetSpan for AssignmentTargetProperty<'_> { fn span(&self) -> Span { match self { Self::AssignmentTargetPropertyIdentifier(it) => GetSpan::span(it.as_ref()), @@ -563,21 +563,21 @@ impl<'a> GetSpan for AssignmentTargetProperty<'a> { } } -impl<'a> GetSpan for AssignmentTargetPropertyIdentifier<'a> { +impl GetSpan for AssignmentTargetPropertyIdentifier<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for AssignmentTargetPropertyProperty<'a> { +impl GetSpan for AssignmentTargetPropertyProperty<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for SequenceExpression<'a> { +impl GetSpan for SequenceExpression<'_> { #[inline] fn span(&self) -> Span { self.span @@ -591,21 +591,21 @@ impl GetSpan for Super { } } -impl<'a> GetSpan for AwaitExpression<'a> { +impl GetSpan for AwaitExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ChainExpression<'a> { +impl GetSpan for ChainExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ChainElement<'a> { +impl GetSpan for ChainElement<'_> { fn span(&self) -> Span { match self { Self::CallExpression(it) => GetSpan::span(it.as_ref()), @@ -617,14 +617,14 @@ impl<'a> GetSpan for ChainElement<'a> { } } -impl<'a> GetSpan for ParenthesizedExpression<'a> { +impl GetSpan for ParenthesizedExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for Statement<'a> { +impl GetSpan for Statement<'_> { fn span(&self) -> Span { match self { Self::BlockStatement(it) => GetSpan::span(it.as_ref()), @@ -663,28 +663,28 @@ impl<'a> GetSpan for Statement<'a> { } } -impl<'a> GetSpan for Directive<'a> { +impl GetSpan for Directive<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for Hashbang<'a> { +impl GetSpan for Hashbang<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for BlockStatement<'a> { +impl GetSpan for BlockStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for Declaration<'a> { +impl GetSpan for Declaration<'_> { fn span(&self) -> Span { match self { Self::VariableDeclaration(it) => GetSpan::span(it.as_ref()), @@ -699,14 +699,14 @@ impl<'a> GetSpan for Declaration<'a> { } } -impl<'a> GetSpan for VariableDeclaration<'a> { +impl GetSpan for VariableDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for VariableDeclarator<'a> { +impl GetSpan for VariableDeclarator<'_> { #[inline] fn span(&self) -> Span { self.span @@ -720,42 +720,42 @@ impl GetSpan for EmptyStatement { } } -impl<'a> GetSpan for ExpressionStatement<'a> { +impl GetSpan for ExpressionStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for IfStatement<'a> { +impl GetSpan for IfStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for DoWhileStatement<'a> { +impl GetSpan for DoWhileStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for WhileStatement<'a> { +impl GetSpan for WhileStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ForStatement<'a> { +impl GetSpan for ForStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ForStatementInit<'a> { +impl GetSpan for ForStatementInit<'_> { fn span(&self) -> Span { match self { Self::VariableDeclaration(it) => GetSpan::span(it.as_ref()), @@ -805,14 +805,14 @@ impl<'a> GetSpan for ForStatementInit<'a> { } } -impl<'a> GetSpan for ForInStatement<'a> { +impl GetSpan for ForInStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ForStatementLeft<'a> { +impl GetSpan for ForStatementLeft<'_> { fn span(&self) -> Span { match self { Self::VariableDeclaration(it) => GetSpan::span(it.as_ref()), @@ -831,84 +831,84 @@ impl<'a> GetSpan for ForStatementLeft<'a> { } } -impl<'a> GetSpan for ForOfStatement<'a> { +impl GetSpan for ForOfStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ContinueStatement<'a> { +impl GetSpan for ContinueStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for BreakStatement<'a> { +impl GetSpan for BreakStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ReturnStatement<'a> { +impl GetSpan for ReturnStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for WithStatement<'a> { +impl GetSpan for WithStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for SwitchStatement<'a> { +impl GetSpan for SwitchStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for SwitchCase<'a> { +impl GetSpan for SwitchCase<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for LabeledStatement<'a> { +impl GetSpan for LabeledStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ThrowStatement<'a> { +impl GetSpan for ThrowStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TryStatement<'a> { +impl GetSpan for TryStatement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for CatchClause<'a> { +impl GetSpan for CatchClause<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for CatchParameter<'a> { +impl GetSpan for CatchParameter<'_> { #[inline] fn span(&self) -> Span { self.span @@ -922,14 +922,14 @@ impl GetSpan for DebuggerStatement { } } -impl<'a> GetSpan for BindingPattern<'a> { +impl GetSpan for BindingPattern<'_> { #[inline] fn span(&self) -> Span { GetSpan::span(&self.kind) } } -impl<'a> GetSpan for BindingPatternKind<'a> { +impl GetSpan for BindingPatternKind<'_> { fn span(&self) -> Span { match self { Self::BindingIdentifier(it) => GetSpan::span(it.as_ref()), @@ -940,98 +940,98 @@ impl<'a> GetSpan for BindingPatternKind<'a> { } } -impl<'a> GetSpan for AssignmentPattern<'a> { +impl GetSpan for AssignmentPattern<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ObjectPattern<'a> { +impl GetSpan for ObjectPattern<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for BindingProperty<'a> { +impl GetSpan for BindingProperty<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ArrayPattern<'a> { +impl GetSpan for ArrayPattern<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for BindingRestElement<'a> { +impl GetSpan for BindingRestElement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for Function<'a> { +impl GetSpan for Function<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for FormalParameters<'a> { +impl GetSpan for FormalParameters<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for FormalParameter<'a> { +impl GetSpan for FormalParameter<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for FunctionBody<'a> { +impl GetSpan for FunctionBody<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ArrowFunctionExpression<'a> { +impl GetSpan for ArrowFunctionExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for YieldExpression<'a> { +impl GetSpan for YieldExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for Class<'a> { +impl GetSpan for Class<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ClassBody<'a> { +impl GetSpan for ClassBody<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ClassElement<'a> { +impl GetSpan for ClassElement<'_> { fn span(&self) -> Span { match self { Self::StaticBlock(it) => GetSpan::span(it.as_ref()), @@ -1043,35 +1043,35 @@ impl<'a> GetSpan for ClassElement<'a> { } } -impl<'a> GetSpan for MethodDefinition<'a> { +impl GetSpan for MethodDefinition<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for PropertyDefinition<'a> { +impl GetSpan for PropertyDefinition<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for PrivateIdentifier<'a> { +impl GetSpan for PrivateIdentifier<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for StaticBlock<'a> { +impl GetSpan for StaticBlock<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ModuleDeclaration<'a> { +impl GetSpan for ModuleDeclaration<'_> { fn span(&self) -> Span { match self { Self::ImportDeclaration(it) => GetSpan::span(it.as_ref()), @@ -1084,28 +1084,28 @@ impl<'a> GetSpan for ModuleDeclaration<'a> { } } -impl<'a> GetSpan for AccessorProperty<'a> { +impl GetSpan for AccessorProperty<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ImportExpression<'a> { +impl GetSpan for ImportExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ImportDeclaration<'a> { +impl GetSpan for ImportDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ImportDeclarationSpecifier<'a> { +impl GetSpan for ImportDeclarationSpecifier<'_> { fn span(&self) -> Span { match self { Self::ImportSpecifier(it) => GetSpan::span(it.as_ref()), @@ -1115,42 +1115,42 @@ impl<'a> GetSpan for ImportDeclarationSpecifier<'a> { } } -impl<'a> GetSpan for ImportSpecifier<'a> { +impl GetSpan for ImportSpecifier<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ImportDefaultSpecifier<'a> { +impl GetSpan for ImportDefaultSpecifier<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ImportNamespaceSpecifier<'a> { +impl GetSpan for ImportNamespaceSpecifier<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for WithClause<'a> { +impl GetSpan for WithClause<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ImportAttribute<'a> { +impl GetSpan for ImportAttribute<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ImportAttributeKey<'a> { +impl GetSpan for ImportAttributeKey<'_> { fn span(&self) -> Span { match self { Self::Identifier(it) => GetSpan::span(it), @@ -1159,35 +1159,35 @@ impl<'a> GetSpan for ImportAttributeKey<'a> { } } -impl<'a> GetSpan for ExportNamedDeclaration<'a> { +impl GetSpan for ExportNamedDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ExportDefaultDeclaration<'a> { +impl GetSpan for ExportDefaultDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ExportAllDeclaration<'a> { +impl GetSpan for ExportAllDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ExportSpecifier<'a> { +impl GetSpan for ExportSpecifier<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for ExportDefaultDeclarationKind<'a> { +impl GetSpan for ExportDefaultDeclarationKind<'_> { fn span(&self) -> Span { match self { Self::FunctionDeclaration(it) => GetSpan::span(it.as_ref()), @@ -1239,7 +1239,7 @@ impl<'a> GetSpan for ExportDefaultDeclarationKind<'a> { } } -impl<'a> GetSpan for ModuleExportName<'a> { +impl GetSpan for ModuleExportName<'_> { fn span(&self) -> Span { match self { Self::IdentifierName(it) => GetSpan::span(it), @@ -1249,28 +1249,28 @@ impl<'a> GetSpan for ModuleExportName<'a> { } } -impl<'a> GetSpan for TSThisParameter<'a> { +impl GetSpan for TSThisParameter<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSEnumDeclaration<'a> { +impl GetSpan for TSEnumDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSEnumMember<'a> { +impl GetSpan for TSEnumMember<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSEnumMemberName<'a> { +impl GetSpan for TSEnumMemberName<'_> { fn span(&self) -> Span { match self { Self::Identifier(it) => GetSpan::span(it.as_ref()), @@ -1279,21 +1279,21 @@ impl<'a> GetSpan for TSEnumMemberName<'a> { } } -impl<'a> GetSpan for TSTypeAnnotation<'a> { +impl GetSpan for TSTypeAnnotation<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSLiteralType<'a> { +impl GetSpan for TSLiteralType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSLiteral<'a> { +impl GetSpan for TSLiteral<'_> { fn span(&self) -> Span { match self { Self::BooleanLiteral(it) => GetSpan::span(it.as_ref()), @@ -1308,7 +1308,7 @@ impl<'a> GetSpan for TSLiteral<'a> { } } -impl<'a> GetSpan for TSType<'a> { +impl GetSpan for TSType<'_> { fn span(&self) -> Span { match self { Self::TSAnyKeyword(it) => GetSpan::span(it.as_ref()), @@ -1353,84 +1353,84 @@ impl<'a> GetSpan for TSType<'a> { } } -impl<'a> GetSpan for TSConditionalType<'a> { +impl GetSpan for TSConditionalType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSUnionType<'a> { +impl GetSpan for TSUnionType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSIntersectionType<'a> { +impl GetSpan for TSIntersectionType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSParenthesizedType<'a> { +impl GetSpan for TSParenthesizedType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypeOperator<'a> { +impl GetSpan for TSTypeOperator<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSArrayType<'a> { +impl GetSpan for TSArrayType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSIndexedAccessType<'a> { +impl GetSpan for TSIndexedAccessType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTupleType<'a> { +impl GetSpan for TSTupleType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSNamedTupleMember<'a> { +impl GetSpan for TSNamedTupleMember<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSOptionalType<'a> { +impl GetSpan for TSOptionalType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSRestType<'a> { +impl GetSpan for TSRestType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTupleElement<'a> { +impl GetSpan for TSTupleElement<'_> { fn span(&self) -> Span { match self { Self::TSOptionalType(it) => GetSpan::span(it.as_ref()), @@ -1575,14 +1575,14 @@ impl GetSpan for TSBigIntKeyword { } } -impl<'a> GetSpan for TSTypeReference<'a> { +impl GetSpan for TSTypeReference<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypeName<'a> { +impl GetSpan for TSTypeName<'_> { fn span(&self) -> Span { match self { Self::IdentifierReference(it) => GetSpan::span(it.as_ref()), @@ -1591,70 +1591,70 @@ impl<'a> GetSpan for TSTypeName<'a> { } } -impl<'a> GetSpan for TSQualifiedName<'a> { +impl GetSpan for TSQualifiedName<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypeParameterInstantiation<'a> { +impl GetSpan for TSTypeParameterInstantiation<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypeParameter<'a> { +impl GetSpan for TSTypeParameter<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypeParameterDeclaration<'a> { +impl GetSpan for TSTypeParameterDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypeAliasDeclaration<'a> { +impl GetSpan for TSTypeAliasDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSClassImplements<'a> { +impl GetSpan for TSClassImplements<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSInterfaceDeclaration<'a> { +impl GetSpan for TSInterfaceDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSInterfaceBody<'a> { +impl GetSpan for TSInterfaceBody<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSPropertySignature<'a> { +impl GetSpan for TSPropertySignature<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSSignature<'a> { +impl GetSpan for TSSignature<'_> { fn span(&self) -> Span { match self { Self::TSIndexSignature(it) => GetSpan::span(it.as_ref()), @@ -1666,56 +1666,56 @@ impl<'a> GetSpan for TSSignature<'a> { } } -impl<'a> GetSpan for TSIndexSignature<'a> { +impl GetSpan for TSIndexSignature<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSCallSignatureDeclaration<'a> { +impl GetSpan for TSCallSignatureDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSMethodSignature<'a> { +impl GetSpan for TSMethodSignature<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSConstructSignatureDeclaration<'a> { +impl GetSpan for TSConstructSignatureDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSIndexSignatureName<'a> { +impl GetSpan for TSIndexSignatureName<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSInterfaceHeritage<'a> { +impl GetSpan for TSInterfaceHeritage<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypePredicate<'a> { +impl GetSpan for TSTypePredicate<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypePredicateName<'a> { +impl GetSpan for TSTypePredicateName<'_> { fn span(&self) -> Span { match self { Self::Identifier(it) => GetSpan::span(it.as_ref()), @@ -1724,14 +1724,14 @@ impl<'a> GetSpan for TSTypePredicateName<'a> { } } -impl<'a> GetSpan for TSModuleDeclaration<'a> { +impl GetSpan for TSModuleDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSModuleDeclarationName<'a> { +impl GetSpan for TSModuleDeclarationName<'_> { fn span(&self) -> Span { match self { Self::Identifier(it) => GetSpan::span(it), @@ -1740,7 +1740,7 @@ impl<'a> GetSpan for TSModuleDeclarationName<'a> { } } -impl<'a> GetSpan for TSModuleDeclarationBody<'a> { +impl GetSpan for TSModuleDeclarationBody<'_> { fn span(&self) -> Span { match self { Self::TSModuleDeclaration(it) => GetSpan::span(it.as_ref()), @@ -1749,35 +1749,35 @@ impl<'a> GetSpan for TSModuleDeclarationBody<'a> { } } -impl<'a> GetSpan for TSModuleBlock<'a> { +impl GetSpan for TSModuleBlock<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypeLiteral<'a> { +impl GetSpan for TSTypeLiteral<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSInferType<'a> { +impl GetSpan for TSInferType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypeQuery<'a> { +impl GetSpan for TSTypeQuery<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypeQueryExprName<'a> { +impl GetSpan for TSTypeQueryExprName<'_> { fn span(&self) -> Span { match self { Self::TSImportType(it) => GetSpan::span(it.as_ref()), @@ -1787,28 +1787,28 @@ impl<'a> GetSpan for TSTypeQueryExprName<'a> { } } -impl<'a> GetSpan for TSImportType<'a> { +impl GetSpan for TSImportType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSImportAttributes<'a> { +impl GetSpan for TSImportAttributes<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSImportAttribute<'a> { +impl GetSpan for TSImportAttribute<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSImportAttributeName<'a> { +impl GetSpan for TSImportAttributeName<'_> { fn span(&self) -> Span { match self { Self::Identifier(it) => GetSpan::span(it), @@ -1817,63 +1817,63 @@ impl<'a> GetSpan for TSImportAttributeName<'a> { } } -impl<'a> GetSpan for TSFunctionType<'a> { +impl GetSpan for TSFunctionType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSConstructorType<'a> { +impl GetSpan for TSConstructorType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSMappedType<'a> { +impl GetSpan for TSMappedType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTemplateLiteralType<'a> { +impl GetSpan for TSTemplateLiteralType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSAsExpression<'a> { +impl GetSpan for TSAsExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSSatisfiesExpression<'a> { +impl GetSpan for TSSatisfiesExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSTypeAssertion<'a> { +impl GetSpan for TSTypeAssertion<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSImportEqualsDeclaration<'a> { +impl GetSpan for TSImportEqualsDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSModuleReference<'a> { +impl GetSpan for TSModuleReference<'_> { fn span(&self) -> Span { match self { Self::ExternalModuleReference(it) => GetSpan::span(it.as_ref()), @@ -1883,56 +1883,56 @@ impl<'a> GetSpan for TSModuleReference<'a> { } } -impl<'a> GetSpan for TSExternalModuleReference<'a> { +impl GetSpan for TSExternalModuleReference<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSNonNullExpression<'a> { +impl GetSpan for TSNonNullExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for Decorator<'a> { +impl GetSpan for Decorator<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSExportAssignment<'a> { +impl GetSpan for TSExportAssignment<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSNamespaceExportDeclaration<'a> { +impl GetSpan for TSNamespaceExportDeclaration<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for TSInstantiationExpression<'a> { +impl GetSpan for TSInstantiationExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSDocNullableType<'a> { +impl GetSpan for JSDocNullableType<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSDocNonNullableType<'a> { +impl GetSpan for JSDocNonNullableType<'_> { #[inline] fn span(&self) -> Span { self.span @@ -1946,28 +1946,28 @@ impl GetSpan for JSDocUnknownType { } } -impl<'a> GetSpan for JSXElement<'a> { +impl GetSpan for JSXElement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSXOpeningElement<'a> { +impl GetSpan for JSXOpeningElement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSXClosingElement<'a> { +impl GetSpan for JSXClosingElement<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSXFragment<'a> { +impl GetSpan for JSXFragment<'_> { #[inline] fn span(&self) -> Span { self.span @@ -1988,7 +1988,7 @@ impl GetSpan for JSXClosingFragment { } } -impl<'a> GetSpan for JSXElementName<'a> { +impl GetSpan for JSXElementName<'_> { fn span(&self) -> Span { match self { Self::Identifier(it) => GetSpan::span(it.as_ref()), @@ -2000,21 +2000,21 @@ impl<'a> GetSpan for JSXElementName<'a> { } } -impl<'a> GetSpan for JSXNamespacedName<'a> { +impl GetSpan for JSXNamespacedName<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSXMemberExpression<'a> { +impl GetSpan for JSXMemberExpression<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSXMemberExpressionObject<'a> { +impl GetSpan for JSXMemberExpressionObject<'_> { fn span(&self) -> Span { match self { Self::IdentifierReference(it) => GetSpan::span(it.as_ref()), @@ -2024,14 +2024,14 @@ impl<'a> GetSpan for JSXMemberExpressionObject<'a> { } } -impl<'a> GetSpan for JSXExpressionContainer<'a> { +impl GetSpan for JSXExpressionContainer<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSXExpression<'a> { +impl GetSpan for JSXExpression<'_> { fn span(&self) -> Span { match self { Self::EmptyExpression(it) => GetSpan::span(it), @@ -2088,7 +2088,7 @@ impl GetSpan for JSXEmptyExpression { } } -impl<'a> GetSpan for JSXAttributeItem<'a> { +impl GetSpan for JSXAttributeItem<'_> { fn span(&self) -> Span { match self { Self::Attribute(it) => GetSpan::span(it.as_ref()), @@ -2097,21 +2097,21 @@ impl<'a> GetSpan for JSXAttributeItem<'a> { } } -impl<'a> GetSpan for JSXAttribute<'a> { +impl GetSpan for JSXAttribute<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSXSpreadAttribute<'a> { +impl GetSpan for JSXSpreadAttribute<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSXAttributeName<'a> { +impl GetSpan for JSXAttributeName<'_> { fn span(&self) -> Span { match self { Self::Identifier(it) => GetSpan::span(it.as_ref()), @@ -2120,7 +2120,7 @@ impl<'a> GetSpan for JSXAttributeName<'a> { } } -impl<'a> GetSpan for JSXAttributeValue<'a> { +impl GetSpan for JSXAttributeValue<'_> { fn span(&self) -> Span { match self { Self::StringLiteral(it) => GetSpan::span(it.as_ref()), @@ -2131,14 +2131,14 @@ impl<'a> GetSpan for JSXAttributeValue<'a> { } } -impl<'a> GetSpan for JSXIdentifier<'a> { +impl GetSpan for JSXIdentifier<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSXChild<'a> { +impl GetSpan for JSXChild<'_> { fn span(&self) -> Span { match self { Self::Text(it) => GetSpan::span(it.as_ref()), @@ -2150,14 +2150,14 @@ impl<'a> GetSpan for JSXChild<'a> { } } -impl<'a> GetSpan for JSXSpreadChild<'a> { +impl GetSpan for JSXSpreadChild<'_> { #[inline] fn span(&self) -> Span { self.span } } -impl<'a> GetSpan for JSXText<'a> { +impl GetSpan for JSXText<'_> { #[inline] fn span(&self) -> Span { self.span diff --git a/crates/oxc_ast/src/generated/derive_get_span_mut.rs b/crates/oxc_ast/src/generated/derive_get_span_mut.rs index 6b03140108034..aa3236f006f7b 100644 --- a/crates/oxc_ast/src/generated/derive_get_span_mut.rs +++ b/crates/oxc_ast/src/generated/derive_get_span_mut.rs @@ -27,42 +27,42 @@ impl GetSpanMut for NullLiteral { } } -impl<'a> GetSpanMut for NumericLiteral<'a> { +impl GetSpanMut for NumericLiteral<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for StringLiteral<'a> { +impl GetSpanMut for StringLiteral<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for BigIntLiteral<'a> { +impl GetSpanMut for BigIntLiteral<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for RegExpLiteral<'a> { +impl GetSpanMut for RegExpLiteral<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for Program<'a> { +impl GetSpanMut for Program<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for Expression<'a> { +impl GetSpanMut for Expression<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::BooleanLiteral(it) => GetSpanMut::span_mut(&mut **it), @@ -111,28 +111,28 @@ impl<'a> GetSpanMut for Expression<'a> { } } -impl<'a> GetSpanMut for IdentifierName<'a> { +impl GetSpanMut for IdentifierName<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for IdentifierReference<'a> { +impl GetSpanMut for IdentifierReference<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for BindingIdentifier<'a> { +impl GetSpanMut for BindingIdentifier<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for LabelIdentifier<'a> { +impl GetSpanMut for LabelIdentifier<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span @@ -146,14 +146,14 @@ impl GetSpanMut for ThisExpression { } } -impl<'a> GetSpanMut for ArrayExpression<'a> { +impl GetSpanMut for ArrayExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ArrayExpressionElement<'a> { +impl GetSpanMut for ArrayExpressionElement<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::SpreadElement(it) => GetSpanMut::span_mut(&mut **it), @@ -211,14 +211,14 @@ impl GetSpanMut for Elision { } } -impl<'a> GetSpanMut for ObjectExpression<'a> { +impl GetSpanMut for ObjectExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ObjectPropertyKind<'a> { +impl GetSpanMut for ObjectPropertyKind<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::ObjectProperty(it) => GetSpanMut::span_mut(&mut **it), @@ -227,14 +227,14 @@ impl<'a> GetSpanMut for ObjectPropertyKind<'a> { } } -impl<'a> GetSpanMut for ObjectProperty<'a> { +impl GetSpanMut for ObjectProperty<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for PropertyKey<'a> { +impl GetSpanMut for PropertyKey<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::StaticIdentifier(it) => GetSpanMut::span_mut(&mut **it), @@ -285,28 +285,28 @@ impl<'a> GetSpanMut for PropertyKey<'a> { } } -impl<'a> GetSpanMut for TemplateLiteral<'a> { +impl GetSpanMut for TemplateLiteral<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TaggedTemplateExpression<'a> { +impl GetSpanMut for TaggedTemplateExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TemplateElement<'a> { +impl GetSpanMut for TemplateElement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for MemberExpression<'a> { +impl GetSpanMut for MemberExpression<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it), @@ -316,56 +316,56 @@ impl<'a> GetSpanMut for MemberExpression<'a> { } } -impl<'a> GetSpanMut for ComputedMemberExpression<'a> { +impl GetSpanMut for ComputedMemberExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for StaticMemberExpression<'a> { +impl GetSpanMut for StaticMemberExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for PrivateFieldExpression<'a> { +impl GetSpanMut for PrivateFieldExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for CallExpression<'a> { +impl GetSpanMut for CallExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for NewExpression<'a> { +impl GetSpanMut for NewExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for MetaProperty<'a> { +impl GetSpanMut for MetaProperty<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for SpreadElement<'a> { +impl GetSpanMut for SpreadElement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for Argument<'a> { +impl GetSpanMut for Argument<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::SpreadElement(it) => GetSpanMut::span_mut(&mut **it), @@ -415,56 +415,56 @@ impl<'a> GetSpanMut for Argument<'a> { } } -impl<'a> GetSpanMut for UpdateExpression<'a> { +impl GetSpanMut for UpdateExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for UnaryExpression<'a> { +impl GetSpanMut for UnaryExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for BinaryExpression<'a> { +impl GetSpanMut for BinaryExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for PrivateInExpression<'a> { +impl GetSpanMut for PrivateInExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for LogicalExpression<'a> { +impl GetSpanMut for LogicalExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ConditionalExpression<'a> { +impl GetSpanMut for ConditionalExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for AssignmentExpression<'a> { +impl GetSpanMut for AssignmentExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for AssignmentTarget<'a> { +impl GetSpanMut for AssignmentTarget<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::AssignmentTargetIdentifier(it) => GetSpanMut::span_mut(&mut **it), @@ -482,7 +482,7 @@ impl<'a> GetSpanMut for AssignmentTarget<'a> { } } -impl<'a> GetSpanMut for SimpleAssignmentTarget<'a> { +impl GetSpanMut for SimpleAssignmentTarget<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::AssignmentTargetIdentifier(it) => GetSpanMut::span_mut(&mut **it), @@ -498,7 +498,7 @@ impl<'a> GetSpanMut for SimpleAssignmentTarget<'a> { } } -impl<'a> GetSpanMut for AssignmentTargetPattern<'a> { +impl GetSpanMut for AssignmentTargetPattern<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::ArrayAssignmentTarget(it) => GetSpanMut::span_mut(&mut **it), @@ -507,28 +507,28 @@ impl<'a> GetSpanMut for AssignmentTargetPattern<'a> { } } -impl<'a> GetSpanMut for ArrayAssignmentTarget<'a> { +impl GetSpanMut for ArrayAssignmentTarget<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ObjectAssignmentTarget<'a> { +impl GetSpanMut for ObjectAssignmentTarget<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for AssignmentTargetRest<'a> { +impl GetSpanMut for AssignmentTargetRest<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for AssignmentTargetMaybeDefault<'a> { +impl GetSpanMut for AssignmentTargetMaybeDefault<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::AssignmentTargetWithDefault(it) => GetSpanMut::span_mut(&mut **it), @@ -547,14 +547,14 @@ impl<'a> GetSpanMut for AssignmentTargetMaybeDefault<'a> { } } -impl<'a> GetSpanMut for AssignmentTargetWithDefault<'a> { +impl GetSpanMut for AssignmentTargetWithDefault<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for AssignmentTargetProperty<'a> { +impl GetSpanMut for AssignmentTargetProperty<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::AssignmentTargetPropertyIdentifier(it) => GetSpanMut::span_mut(&mut **it), @@ -563,21 +563,21 @@ impl<'a> GetSpanMut for AssignmentTargetProperty<'a> { } } -impl<'a> GetSpanMut for AssignmentTargetPropertyIdentifier<'a> { +impl GetSpanMut for AssignmentTargetPropertyIdentifier<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for AssignmentTargetPropertyProperty<'a> { +impl GetSpanMut for AssignmentTargetPropertyProperty<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for SequenceExpression<'a> { +impl GetSpanMut for SequenceExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span @@ -591,21 +591,21 @@ impl GetSpanMut for Super { } } -impl<'a> GetSpanMut for AwaitExpression<'a> { +impl GetSpanMut for AwaitExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ChainExpression<'a> { +impl GetSpanMut for ChainExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ChainElement<'a> { +impl GetSpanMut for ChainElement<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::CallExpression(it) => GetSpanMut::span_mut(&mut **it), @@ -617,14 +617,14 @@ impl<'a> GetSpanMut for ChainElement<'a> { } } -impl<'a> GetSpanMut for ParenthesizedExpression<'a> { +impl GetSpanMut for ParenthesizedExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for Statement<'a> { +impl GetSpanMut for Statement<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::BlockStatement(it) => GetSpanMut::span_mut(&mut **it), @@ -663,28 +663,28 @@ impl<'a> GetSpanMut for Statement<'a> { } } -impl<'a> GetSpanMut for Directive<'a> { +impl GetSpanMut for Directive<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for Hashbang<'a> { +impl GetSpanMut for Hashbang<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for BlockStatement<'a> { +impl GetSpanMut for BlockStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for Declaration<'a> { +impl GetSpanMut for Declaration<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::VariableDeclaration(it) => GetSpanMut::span_mut(&mut **it), @@ -699,14 +699,14 @@ impl<'a> GetSpanMut for Declaration<'a> { } } -impl<'a> GetSpanMut for VariableDeclaration<'a> { +impl GetSpanMut for VariableDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for VariableDeclarator<'a> { +impl GetSpanMut for VariableDeclarator<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span @@ -720,42 +720,42 @@ impl GetSpanMut for EmptyStatement { } } -impl<'a> GetSpanMut for ExpressionStatement<'a> { +impl GetSpanMut for ExpressionStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for IfStatement<'a> { +impl GetSpanMut for IfStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for DoWhileStatement<'a> { +impl GetSpanMut for DoWhileStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for WhileStatement<'a> { +impl GetSpanMut for WhileStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ForStatement<'a> { +impl GetSpanMut for ForStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ForStatementInit<'a> { +impl GetSpanMut for ForStatementInit<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::VariableDeclaration(it) => GetSpanMut::span_mut(&mut **it), @@ -805,14 +805,14 @@ impl<'a> GetSpanMut for ForStatementInit<'a> { } } -impl<'a> GetSpanMut for ForInStatement<'a> { +impl GetSpanMut for ForInStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ForStatementLeft<'a> { +impl GetSpanMut for ForStatementLeft<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::VariableDeclaration(it) => GetSpanMut::span_mut(&mut **it), @@ -831,84 +831,84 @@ impl<'a> GetSpanMut for ForStatementLeft<'a> { } } -impl<'a> GetSpanMut for ForOfStatement<'a> { +impl GetSpanMut for ForOfStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ContinueStatement<'a> { +impl GetSpanMut for ContinueStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for BreakStatement<'a> { +impl GetSpanMut for BreakStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ReturnStatement<'a> { +impl GetSpanMut for ReturnStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for WithStatement<'a> { +impl GetSpanMut for WithStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for SwitchStatement<'a> { +impl GetSpanMut for SwitchStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for SwitchCase<'a> { +impl GetSpanMut for SwitchCase<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for LabeledStatement<'a> { +impl GetSpanMut for LabeledStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ThrowStatement<'a> { +impl GetSpanMut for ThrowStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TryStatement<'a> { +impl GetSpanMut for TryStatement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for CatchClause<'a> { +impl GetSpanMut for CatchClause<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for CatchParameter<'a> { +impl GetSpanMut for CatchParameter<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span @@ -922,14 +922,14 @@ impl GetSpanMut for DebuggerStatement { } } -impl<'a> GetSpanMut for BindingPattern<'a> { +impl GetSpanMut for BindingPattern<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { GetSpanMut::span_mut(&mut self.kind) } } -impl<'a> GetSpanMut for BindingPatternKind<'a> { +impl GetSpanMut for BindingPatternKind<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::BindingIdentifier(it) => GetSpanMut::span_mut(&mut **it), @@ -940,98 +940,98 @@ impl<'a> GetSpanMut for BindingPatternKind<'a> { } } -impl<'a> GetSpanMut for AssignmentPattern<'a> { +impl GetSpanMut for AssignmentPattern<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ObjectPattern<'a> { +impl GetSpanMut for ObjectPattern<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for BindingProperty<'a> { +impl GetSpanMut for BindingProperty<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ArrayPattern<'a> { +impl GetSpanMut for ArrayPattern<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for BindingRestElement<'a> { +impl GetSpanMut for BindingRestElement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for Function<'a> { +impl GetSpanMut for Function<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for FormalParameters<'a> { +impl GetSpanMut for FormalParameters<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for FormalParameter<'a> { +impl GetSpanMut for FormalParameter<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for FunctionBody<'a> { +impl GetSpanMut for FunctionBody<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ArrowFunctionExpression<'a> { +impl GetSpanMut for ArrowFunctionExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for YieldExpression<'a> { +impl GetSpanMut for YieldExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for Class<'a> { +impl GetSpanMut for Class<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ClassBody<'a> { +impl GetSpanMut for ClassBody<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ClassElement<'a> { +impl GetSpanMut for ClassElement<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::StaticBlock(it) => GetSpanMut::span_mut(&mut **it), @@ -1043,35 +1043,35 @@ impl<'a> GetSpanMut for ClassElement<'a> { } } -impl<'a> GetSpanMut for MethodDefinition<'a> { +impl GetSpanMut for MethodDefinition<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for PropertyDefinition<'a> { +impl GetSpanMut for PropertyDefinition<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for PrivateIdentifier<'a> { +impl GetSpanMut for PrivateIdentifier<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for StaticBlock<'a> { +impl GetSpanMut for StaticBlock<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ModuleDeclaration<'a> { +impl GetSpanMut for ModuleDeclaration<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::ImportDeclaration(it) => GetSpanMut::span_mut(&mut **it), @@ -1084,28 +1084,28 @@ impl<'a> GetSpanMut for ModuleDeclaration<'a> { } } -impl<'a> GetSpanMut for AccessorProperty<'a> { +impl GetSpanMut for AccessorProperty<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ImportExpression<'a> { +impl GetSpanMut for ImportExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ImportDeclaration<'a> { +impl GetSpanMut for ImportDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ImportDeclarationSpecifier<'a> { +impl GetSpanMut for ImportDeclarationSpecifier<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::ImportSpecifier(it) => GetSpanMut::span_mut(&mut **it), @@ -1115,42 +1115,42 @@ impl<'a> GetSpanMut for ImportDeclarationSpecifier<'a> { } } -impl<'a> GetSpanMut for ImportSpecifier<'a> { +impl GetSpanMut for ImportSpecifier<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ImportDefaultSpecifier<'a> { +impl GetSpanMut for ImportDefaultSpecifier<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ImportNamespaceSpecifier<'a> { +impl GetSpanMut for ImportNamespaceSpecifier<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for WithClause<'a> { +impl GetSpanMut for WithClause<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ImportAttribute<'a> { +impl GetSpanMut for ImportAttribute<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ImportAttributeKey<'a> { +impl GetSpanMut for ImportAttributeKey<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::Identifier(it) => GetSpanMut::span_mut(it), @@ -1159,35 +1159,35 @@ impl<'a> GetSpanMut for ImportAttributeKey<'a> { } } -impl<'a> GetSpanMut for ExportNamedDeclaration<'a> { +impl GetSpanMut for ExportNamedDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ExportDefaultDeclaration<'a> { +impl GetSpanMut for ExportDefaultDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ExportAllDeclaration<'a> { +impl GetSpanMut for ExportAllDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ExportSpecifier<'a> { +impl GetSpanMut for ExportSpecifier<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for ExportDefaultDeclarationKind<'a> { +impl GetSpanMut for ExportDefaultDeclarationKind<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::FunctionDeclaration(it) => GetSpanMut::span_mut(&mut **it), @@ -1239,7 +1239,7 @@ impl<'a> GetSpanMut for ExportDefaultDeclarationKind<'a> { } } -impl<'a> GetSpanMut for ModuleExportName<'a> { +impl GetSpanMut for ModuleExportName<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::IdentifierName(it) => GetSpanMut::span_mut(it), @@ -1249,28 +1249,28 @@ impl<'a> GetSpanMut for ModuleExportName<'a> { } } -impl<'a> GetSpanMut for TSThisParameter<'a> { +impl GetSpanMut for TSThisParameter<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSEnumDeclaration<'a> { +impl GetSpanMut for TSEnumDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSEnumMember<'a> { +impl GetSpanMut for TSEnumMember<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSEnumMemberName<'a> { +impl GetSpanMut for TSEnumMemberName<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::Identifier(it) => GetSpanMut::span_mut(&mut **it), @@ -1279,21 +1279,21 @@ impl<'a> GetSpanMut for TSEnumMemberName<'a> { } } -impl<'a> GetSpanMut for TSTypeAnnotation<'a> { +impl GetSpanMut for TSTypeAnnotation<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSLiteralType<'a> { +impl GetSpanMut for TSLiteralType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSLiteral<'a> { +impl GetSpanMut for TSLiteral<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::BooleanLiteral(it) => GetSpanMut::span_mut(&mut **it), @@ -1308,7 +1308,7 @@ impl<'a> GetSpanMut for TSLiteral<'a> { } } -impl<'a> GetSpanMut for TSType<'a> { +impl GetSpanMut for TSType<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::TSAnyKeyword(it) => GetSpanMut::span_mut(&mut **it), @@ -1353,84 +1353,84 @@ impl<'a> GetSpanMut for TSType<'a> { } } -impl<'a> GetSpanMut for TSConditionalType<'a> { +impl GetSpanMut for TSConditionalType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSUnionType<'a> { +impl GetSpanMut for TSUnionType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSIntersectionType<'a> { +impl GetSpanMut for TSIntersectionType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSParenthesizedType<'a> { +impl GetSpanMut for TSParenthesizedType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypeOperator<'a> { +impl GetSpanMut for TSTypeOperator<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSArrayType<'a> { +impl GetSpanMut for TSArrayType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSIndexedAccessType<'a> { +impl GetSpanMut for TSIndexedAccessType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTupleType<'a> { +impl GetSpanMut for TSTupleType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSNamedTupleMember<'a> { +impl GetSpanMut for TSNamedTupleMember<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSOptionalType<'a> { +impl GetSpanMut for TSOptionalType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSRestType<'a> { +impl GetSpanMut for TSRestType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTupleElement<'a> { +impl GetSpanMut for TSTupleElement<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::TSOptionalType(it) => GetSpanMut::span_mut(&mut **it), @@ -1575,14 +1575,14 @@ impl GetSpanMut for TSBigIntKeyword { } } -impl<'a> GetSpanMut for TSTypeReference<'a> { +impl GetSpanMut for TSTypeReference<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypeName<'a> { +impl GetSpanMut for TSTypeName<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::IdentifierReference(it) => GetSpanMut::span_mut(&mut **it), @@ -1591,70 +1591,70 @@ impl<'a> GetSpanMut for TSTypeName<'a> { } } -impl<'a> GetSpanMut for TSQualifiedName<'a> { +impl GetSpanMut for TSQualifiedName<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypeParameterInstantiation<'a> { +impl GetSpanMut for TSTypeParameterInstantiation<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypeParameter<'a> { +impl GetSpanMut for TSTypeParameter<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypeParameterDeclaration<'a> { +impl GetSpanMut for TSTypeParameterDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypeAliasDeclaration<'a> { +impl GetSpanMut for TSTypeAliasDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSClassImplements<'a> { +impl GetSpanMut for TSClassImplements<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSInterfaceDeclaration<'a> { +impl GetSpanMut for TSInterfaceDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSInterfaceBody<'a> { +impl GetSpanMut for TSInterfaceBody<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSPropertySignature<'a> { +impl GetSpanMut for TSPropertySignature<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSSignature<'a> { +impl GetSpanMut for TSSignature<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::TSIndexSignature(it) => GetSpanMut::span_mut(&mut **it), @@ -1666,56 +1666,56 @@ impl<'a> GetSpanMut for TSSignature<'a> { } } -impl<'a> GetSpanMut for TSIndexSignature<'a> { +impl GetSpanMut for TSIndexSignature<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSCallSignatureDeclaration<'a> { +impl GetSpanMut for TSCallSignatureDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSMethodSignature<'a> { +impl GetSpanMut for TSMethodSignature<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSConstructSignatureDeclaration<'a> { +impl GetSpanMut for TSConstructSignatureDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSIndexSignatureName<'a> { +impl GetSpanMut for TSIndexSignatureName<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSInterfaceHeritage<'a> { +impl GetSpanMut for TSInterfaceHeritage<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypePredicate<'a> { +impl GetSpanMut for TSTypePredicate<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypePredicateName<'a> { +impl GetSpanMut for TSTypePredicateName<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::Identifier(it) => GetSpanMut::span_mut(&mut **it), @@ -1724,14 +1724,14 @@ impl<'a> GetSpanMut for TSTypePredicateName<'a> { } } -impl<'a> GetSpanMut for TSModuleDeclaration<'a> { +impl GetSpanMut for TSModuleDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSModuleDeclarationName<'a> { +impl GetSpanMut for TSModuleDeclarationName<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::Identifier(it) => GetSpanMut::span_mut(it), @@ -1740,7 +1740,7 @@ impl<'a> GetSpanMut for TSModuleDeclarationName<'a> { } } -impl<'a> GetSpanMut for TSModuleDeclarationBody<'a> { +impl GetSpanMut for TSModuleDeclarationBody<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::TSModuleDeclaration(it) => GetSpanMut::span_mut(&mut **it), @@ -1749,35 +1749,35 @@ impl<'a> GetSpanMut for TSModuleDeclarationBody<'a> { } } -impl<'a> GetSpanMut for TSModuleBlock<'a> { +impl GetSpanMut for TSModuleBlock<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypeLiteral<'a> { +impl GetSpanMut for TSTypeLiteral<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSInferType<'a> { +impl GetSpanMut for TSInferType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypeQuery<'a> { +impl GetSpanMut for TSTypeQuery<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypeQueryExprName<'a> { +impl GetSpanMut for TSTypeQueryExprName<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::TSImportType(it) => GetSpanMut::span_mut(&mut **it), @@ -1787,28 +1787,28 @@ impl<'a> GetSpanMut for TSTypeQueryExprName<'a> { } } -impl<'a> GetSpanMut for TSImportType<'a> { +impl GetSpanMut for TSImportType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSImportAttributes<'a> { +impl GetSpanMut for TSImportAttributes<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSImportAttribute<'a> { +impl GetSpanMut for TSImportAttribute<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSImportAttributeName<'a> { +impl GetSpanMut for TSImportAttributeName<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::Identifier(it) => GetSpanMut::span_mut(it), @@ -1817,63 +1817,63 @@ impl<'a> GetSpanMut for TSImportAttributeName<'a> { } } -impl<'a> GetSpanMut for TSFunctionType<'a> { +impl GetSpanMut for TSFunctionType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSConstructorType<'a> { +impl GetSpanMut for TSConstructorType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSMappedType<'a> { +impl GetSpanMut for TSMappedType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTemplateLiteralType<'a> { +impl GetSpanMut for TSTemplateLiteralType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSAsExpression<'a> { +impl GetSpanMut for TSAsExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSSatisfiesExpression<'a> { +impl GetSpanMut for TSSatisfiesExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSTypeAssertion<'a> { +impl GetSpanMut for TSTypeAssertion<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSImportEqualsDeclaration<'a> { +impl GetSpanMut for TSImportEqualsDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSModuleReference<'a> { +impl GetSpanMut for TSModuleReference<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::ExternalModuleReference(it) => GetSpanMut::span_mut(&mut **it), @@ -1883,56 +1883,56 @@ impl<'a> GetSpanMut for TSModuleReference<'a> { } } -impl<'a> GetSpanMut for TSExternalModuleReference<'a> { +impl GetSpanMut for TSExternalModuleReference<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSNonNullExpression<'a> { +impl GetSpanMut for TSNonNullExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for Decorator<'a> { +impl GetSpanMut for Decorator<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSExportAssignment<'a> { +impl GetSpanMut for TSExportAssignment<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSNamespaceExportDeclaration<'a> { +impl GetSpanMut for TSNamespaceExportDeclaration<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for TSInstantiationExpression<'a> { +impl GetSpanMut for TSInstantiationExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSDocNullableType<'a> { +impl GetSpanMut for JSDocNullableType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSDocNonNullableType<'a> { +impl GetSpanMut for JSDocNonNullableType<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span @@ -1946,28 +1946,28 @@ impl GetSpanMut for JSDocUnknownType { } } -impl<'a> GetSpanMut for JSXElement<'a> { +impl GetSpanMut for JSXElement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSXOpeningElement<'a> { +impl GetSpanMut for JSXOpeningElement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSXClosingElement<'a> { +impl GetSpanMut for JSXClosingElement<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSXFragment<'a> { +impl GetSpanMut for JSXFragment<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span @@ -1988,7 +1988,7 @@ impl GetSpanMut for JSXClosingFragment { } } -impl<'a> GetSpanMut for JSXElementName<'a> { +impl GetSpanMut for JSXElementName<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::Identifier(it) => GetSpanMut::span_mut(&mut **it), @@ -2000,21 +2000,21 @@ impl<'a> GetSpanMut for JSXElementName<'a> { } } -impl<'a> GetSpanMut for JSXNamespacedName<'a> { +impl GetSpanMut for JSXNamespacedName<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSXMemberExpression<'a> { +impl GetSpanMut for JSXMemberExpression<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSXMemberExpressionObject<'a> { +impl GetSpanMut for JSXMemberExpressionObject<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::IdentifierReference(it) => GetSpanMut::span_mut(&mut **it), @@ -2024,14 +2024,14 @@ impl<'a> GetSpanMut for JSXMemberExpressionObject<'a> { } } -impl<'a> GetSpanMut for JSXExpressionContainer<'a> { +impl GetSpanMut for JSXExpressionContainer<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSXExpression<'a> { +impl GetSpanMut for JSXExpression<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::EmptyExpression(it) => GetSpanMut::span_mut(it), @@ -2088,7 +2088,7 @@ impl GetSpanMut for JSXEmptyExpression { } } -impl<'a> GetSpanMut for JSXAttributeItem<'a> { +impl GetSpanMut for JSXAttributeItem<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::Attribute(it) => GetSpanMut::span_mut(&mut **it), @@ -2097,21 +2097,21 @@ impl<'a> GetSpanMut for JSXAttributeItem<'a> { } } -impl<'a> GetSpanMut for JSXAttribute<'a> { +impl GetSpanMut for JSXAttribute<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSXSpreadAttribute<'a> { +impl GetSpanMut for JSXSpreadAttribute<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSXAttributeName<'a> { +impl GetSpanMut for JSXAttributeName<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::Identifier(it) => GetSpanMut::span_mut(&mut **it), @@ -2120,7 +2120,7 @@ impl<'a> GetSpanMut for JSXAttributeName<'a> { } } -impl<'a> GetSpanMut for JSXAttributeValue<'a> { +impl GetSpanMut for JSXAttributeValue<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::StringLiteral(it) => GetSpanMut::span_mut(&mut **it), @@ -2131,14 +2131,14 @@ impl<'a> GetSpanMut for JSXAttributeValue<'a> { } } -impl<'a> GetSpanMut for JSXIdentifier<'a> { +impl GetSpanMut for JSXIdentifier<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSXChild<'a> { +impl GetSpanMut for JSXChild<'_> { fn span_mut(&mut self) -> &mut Span { match self { Self::Text(it) => GetSpanMut::span_mut(&mut **it), @@ -2150,14 +2150,14 @@ impl<'a> GetSpanMut for JSXChild<'a> { } } -impl<'a> GetSpanMut for JSXSpreadChild<'a> { +impl GetSpanMut for JSXSpreadChild<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span } } -impl<'a> GetSpanMut for JSXText<'a> { +impl GetSpanMut for JSXText<'_> { #[inline] fn span_mut(&mut self) -> &mut Span { &mut self.span diff --git a/crates/oxc_ast/src/generated/get_id.rs b/crates/oxc_ast/src/generated/get_id.rs index 31562c007a87d..81eb0b5b9c02e 100644 --- a/crates/oxc_ast/src/generated/get_id.rs +++ b/crates/oxc_ast/src/generated/get_id.rs @@ -5,7 +5,7 @@ use oxc_syntax::{reference::ReferenceId, scope::ScopeId, symbol::SymbolId}; use crate::ast::*; -impl<'a> Program<'a> { +impl Program<'_> { /// Get [`ScopeId`] of [`Program`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -24,7 +24,7 @@ impl<'a> Program<'a> { } } -impl<'a> IdentifierReference<'a> { +impl IdentifierReference<'_> { /// Get [`ReferenceId`] of [`IdentifierReference`]. /// /// Only use this method on a post-semantic AST where [`ReferenceId`]s are always defined. @@ -43,7 +43,7 @@ impl<'a> IdentifierReference<'a> { } } -impl<'a> BindingIdentifier<'a> { +impl BindingIdentifier<'_> { /// Get [`SymbolId`] of [`BindingIdentifier`]. /// /// Only use this method on a post-semantic AST where [`SymbolId`]s are always defined. @@ -62,7 +62,7 @@ impl<'a> BindingIdentifier<'a> { } } -impl<'a> BlockStatement<'a> { +impl BlockStatement<'_> { /// Get [`ScopeId`] of [`BlockStatement`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -81,7 +81,7 @@ impl<'a> BlockStatement<'a> { } } -impl<'a> ForStatement<'a> { +impl ForStatement<'_> { /// Get [`ScopeId`] of [`ForStatement`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -100,7 +100,7 @@ impl<'a> ForStatement<'a> { } } -impl<'a> ForInStatement<'a> { +impl ForInStatement<'_> { /// Get [`ScopeId`] of [`ForInStatement`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -119,7 +119,7 @@ impl<'a> ForInStatement<'a> { } } -impl<'a> ForOfStatement<'a> { +impl ForOfStatement<'_> { /// Get [`ScopeId`] of [`ForOfStatement`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -138,7 +138,7 @@ impl<'a> ForOfStatement<'a> { } } -impl<'a> SwitchStatement<'a> { +impl SwitchStatement<'_> { /// Get [`ScopeId`] of [`SwitchStatement`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -157,7 +157,7 @@ impl<'a> SwitchStatement<'a> { } } -impl<'a> CatchClause<'a> { +impl CatchClause<'_> { /// Get [`ScopeId`] of [`CatchClause`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -176,7 +176,7 @@ impl<'a> CatchClause<'a> { } } -impl<'a> Function<'a> { +impl Function<'_> { /// Get [`ScopeId`] of [`Function`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -195,7 +195,7 @@ impl<'a> Function<'a> { } } -impl<'a> ArrowFunctionExpression<'a> { +impl ArrowFunctionExpression<'_> { /// Get [`ScopeId`] of [`ArrowFunctionExpression`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -214,7 +214,7 @@ impl<'a> ArrowFunctionExpression<'a> { } } -impl<'a> Class<'a> { +impl Class<'_> { /// Get [`ScopeId`] of [`Class`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -233,7 +233,7 @@ impl<'a> Class<'a> { } } -impl<'a> StaticBlock<'a> { +impl StaticBlock<'_> { /// Get [`ScopeId`] of [`StaticBlock`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -252,7 +252,7 @@ impl<'a> StaticBlock<'a> { } } -impl<'a> TSEnumDeclaration<'a> { +impl TSEnumDeclaration<'_> { /// Get [`ScopeId`] of [`TSEnumDeclaration`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -271,7 +271,7 @@ impl<'a> TSEnumDeclaration<'a> { } } -impl<'a> TSConditionalType<'a> { +impl TSConditionalType<'_> { /// Get [`ScopeId`] of [`TSConditionalType`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -290,7 +290,7 @@ impl<'a> TSConditionalType<'a> { } } -impl<'a> TSTypeAliasDeclaration<'a> { +impl TSTypeAliasDeclaration<'_> { /// Get [`ScopeId`] of [`TSTypeAliasDeclaration`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -309,7 +309,7 @@ impl<'a> TSTypeAliasDeclaration<'a> { } } -impl<'a> TSInterfaceDeclaration<'a> { +impl TSInterfaceDeclaration<'_> { /// Get [`ScopeId`] of [`TSInterfaceDeclaration`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -328,7 +328,7 @@ impl<'a> TSInterfaceDeclaration<'a> { } } -impl<'a> TSMethodSignature<'a> { +impl TSMethodSignature<'_> { /// Get [`ScopeId`] of [`TSMethodSignature`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -347,7 +347,7 @@ impl<'a> TSMethodSignature<'a> { } } -impl<'a> TSConstructSignatureDeclaration<'a> { +impl TSConstructSignatureDeclaration<'_> { /// Get [`ScopeId`] of [`TSConstructSignatureDeclaration`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -366,7 +366,7 @@ impl<'a> TSConstructSignatureDeclaration<'a> { } } -impl<'a> TSModuleDeclaration<'a> { +impl TSModuleDeclaration<'_> { /// Get [`ScopeId`] of [`TSModuleDeclaration`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. @@ -385,7 +385,7 @@ impl<'a> TSModuleDeclaration<'a> { } } -impl<'a> TSMappedType<'a> { +impl TSMappedType<'_> { /// Get [`ScopeId`] of [`TSMappedType`]. /// /// Only use this method on a post-semantic AST where [`ScopeId`]s are always defined. diff --git a/crates/oxc_linter/src/rules/unicorn/no_unreadable_array_destructuring.rs b/crates/oxc_linter/src/rules/unicorn/no_unreadable_array_destructuring.rs index 3bdd57f5daaf8..67414f43554c7 100644 --- a/crates/oxc_linter/src/rules/unicorn/no_unreadable_array_destructuring.rs +++ b/crates/oxc_linter/src/rules/unicorn/no_unreadable_array_destructuring.rs @@ -39,7 +39,7 @@ declare_oxc_lint!( style ); -fn is_unreadable_array_destructuring(elements: &Vec>, rest: &Option) -> bool { +fn is_unreadable_array_destructuring(elements: &Vec>, rest: Option<&U>) -> bool { if elements.len() >= 3 && elements.windows(2).any(|window| window.iter().all(Option::is_none)) { return true; } @@ -54,7 +54,10 @@ fn is_unreadable_array_destructuring(elements: &Vec>, rest: &Opt impl Rule for NoUnreadableArrayDestructuring { fn run<'a>(&self, node: &AstNode<'a>, ctx: &LintContext<'a>) { if let AstKind::ArrayPattern(array_pattern) = node.kind() { - if is_unreadable_array_destructuring(&array_pattern.elements, &array_pattern.rest) { + if is_unreadable_array_destructuring( + &array_pattern.elements, + array_pattern.rest.as_ref(), + ) { ctx.diagnostic(no_unreadable_array_destructuring_diagnostic(array_pattern.span)); } } @@ -62,7 +65,10 @@ impl Rule for NoUnreadableArrayDestructuring { if let AstKind::AssignmentTarget(AssignmentTarget::ArrayAssignmentTarget(array_pattern)) = node.kind() { - if is_unreadable_array_destructuring(&array_pattern.elements, &array_pattern.rest) { + if is_unreadable_array_destructuring( + &array_pattern.elements, + array_pattern.rest.as_ref(), + ) { ctx.diagnostic(no_unreadable_array_destructuring_diagnostic(array_pattern.span)); } } diff --git a/crates/oxc_linter/src/tester.rs b/crates/oxc_linter/src/tester.rs index 46416db612768..fb619fc225d85 100644 --- a/crates/oxc_linter/src/tester.rs +++ b/crates/oxc_linter/src/tester.rs @@ -425,6 +425,7 @@ impl Tester { } } + #[expect(clippy::ref_option)] fn run( &mut self, source_text: &str, diff --git a/crates/oxc_parser/src/lexer/jsx.rs b/crates/oxc_parser/src/lexer/jsx.rs index b89fe7c5c6b02..af11e8a9e87b2 100644 --- a/crates/oxc_parser/src/lexer/jsx.rs +++ b/crates/oxc_parser/src/lexer/jsx.rs @@ -11,18 +11,17 @@ use crate::diagnostics; static NOT_ASCII_JSX_ID_CONTINUE_TABLE: SafeByteMatchTable = safe_byte_match_table!(|b| !(b.is_ascii_alphanumeric() || matches!(b, b'_' | b'$' | b'-'))); +/// `JSXDoubleStringCharacters` :: +/// `JSXDoubleStringCharacter` `JSXDoubleStringCharactersopt` +/// `JSXDoubleStringCharacter` :: +/// `JSXStringCharacter` but not " +/// `JSXSingleStringCharacters` :: +/// `JSXSingleStringCharacter` `JSXSingleStringCharactersopt` +/// `JSXSingleStringCharacter` :: +/// `JSXStringCharacter` but not ' +/// `JSXStringCharacter` :: +/// `SourceCharacter` but not one of `HTMLCharacterReference` impl Lexer<'_> { - /// `JSXDoubleStringCharacters` :: - /// `JSXDoubleStringCharacter` `JSXDoubleStringCharactersopt` - /// `JSXDoubleStringCharacter` :: - /// `JSXStringCharacter` but not " - /// `JSXSingleStringCharacters` :: - /// `JSXSingleStringCharacter` `JSXSingleStringCharactersopt` - /// `JSXSingleStringCharacter` :: - /// `JSXStringCharacter` but not ' - /// `JSXStringCharacter` :: - /// `SourceCharacter` but not one of `HTMLCharacterReference` - /// Read JSX string literal. /// # SAFETY /// * `delimiter` must be an ASCII character. diff --git a/crates/oxc_parser/src/lexer/string.rs b/crates/oxc_parser/src/lexer/string.rs index 73c9635c83040..7c004779c929d 100644 --- a/crates/oxc_parser/src/lexer/string.rs +++ b/crates/oxc_parser/src/lexer/string.rs @@ -152,9 +152,8 @@ macro_rules! handle_string_literal_escape { }}; } +/// 12.9.4 String Literals impl<'a> Lexer<'a> { - /// 12.9.4 String Literals - /// Read string literal delimited with `"`. /// # SAFETY /// Next character must be `"`. diff --git a/crates/oxc_parser/src/lexer/template.rs b/crates/oxc_parser/src/lexer/template.rs index ea672dfa5bb27..aefe84791c031 100644 --- a/crates/oxc_parser/src/lexer/template.rs +++ b/crates/oxc_parser/src/lexer/template.rs @@ -14,9 +14,8 @@ const MIN_ESCAPED_TEMPLATE_LIT_LEN: usize = 16; static TEMPLATE_LITERAL_TABLE: SafeByteMatchTable = safe_byte_match_table!(|b| matches!(b, b'$' | b'`' | b'\r' | b'\\')); +/// 12.8.6 Template Literal Lexical Components impl<'a> Lexer<'a> { - /// 12.8.6 Template Literal Lexical Components - /// Read template literal component. /// /// This function handles the common case where template contains no escapes or `\r` characters diff --git a/crates/oxc_parser/src/ts/statement.rs b/crates/oxc_parser/src/ts/statement.rs index ec19d6cfa2b72..12a629d062ba1 100644 --- a/crates/oxc_parser/src/ts/statement.rs +++ b/crates/oxc_parser/src/ts/statement.rs @@ -12,7 +12,7 @@ use crate::{ }; impl<'a> ParserImpl<'a> { - /** ------------------- Enum ------------------ */ + /* ------------------- Enum ------------------ */ pub(crate) fn is_at_enum_declaration(&mut self) -> bool { self.at(Kind::Enum) || (self.at(Kind::Const) && self.peek_at(Kind::Enum)) @@ -96,7 +96,7 @@ impl<'a> ParserImpl<'a> { } } - /** ------------------- Annotation ----------------- */ + /* ------------------- Annotation ----------------- */ pub(crate) fn parse_ts_type_annotation( &mut self, @@ -144,7 +144,7 @@ impl<'a> ParserImpl<'a> { )) } - /** --------------------- Interface ------------------------ */ + /* --------------------- Interface ------------------------ */ pub(crate) fn parse_ts_interface_declaration( &mut self, @@ -266,7 +266,7 @@ impl<'a> ParserImpl<'a> { } } - /** ----------------------- Namespace & Module ----------------------- */ + /* ----------------------- Namespace & Module ----------------------- */ fn parse_ts_module_block(&mut self) -> Result>> { let span = self.start_span(); @@ -323,7 +323,7 @@ impl<'a> ParserImpl<'a> { )) } - /** ----------------------- declare --------------------- */ + /* ----------------------- declare --------------------- */ pub(crate) fn parse_ts_declaration_statement( &mut self, diff --git a/crates/oxc_prettier/src/format/call_expression.rs b/crates/oxc_prettier/src/format/call_expression.rs index b6eed1e77d0a6..2d1ab0476ea3b 100644 --- a/crates/oxc_prettier/src/format/call_expression.rs +++ b/crates/oxc_prettier/src/format/call_expression.rs @@ -41,10 +41,10 @@ impl<'a> CallExpressionLike<'a, '_> { pub fn type_parameters( &self, - ) -> &Option>> { + ) -> Option<&oxc_allocator::Box<'a, TSTypeParameterInstantiation<'a>>> { match self { - CallExpressionLike::CallExpression(call) => &call.type_parameters, - CallExpressionLike::NewExpression(new) => &new.type_parameters, + CallExpressionLike::CallExpression(call) => call.type_parameters.as_ref(), + CallExpressionLike::NewExpression(new) => new.type_parameters.as_ref(), } } } diff --git a/crates/oxc_regular_expression/src/generated/derive_clone_in.rs b/crates/oxc_regular_expression/src/generated/derive_clone_in.rs index bc7c9c9f78858..62f9e4ef10fde 100644 --- a/crates/oxc_regular_expression/src/generated/derive_clone_in.rs +++ b/crates/oxc_regular_expression/src/generated/derive_clone_in.rs @@ -7,7 +7,7 @@ use oxc_allocator::{Allocator, CloneIn}; use crate::ast::*; -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Pattern<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Pattern<'_> { type Cloned = Pattern<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { Pattern { @@ -17,7 +17,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Pattern<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Disjunction<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Disjunction<'_> { type Cloned = Disjunction<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { Disjunction { @@ -27,7 +27,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Disjunction<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Alternative<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Alternative<'_> { type Cloned = Alternative<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { Alternative { @@ -37,7 +37,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Alternative<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Term<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Term<'_> { type Cloned = Term<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -87,7 +87,7 @@ impl<'alloc> CloneIn<'alloc> for BoundaryAssertionKind { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for LookAroundAssertion<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for LookAroundAssertion<'_> { type Cloned = LookAroundAssertion<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { LookAroundAssertion { @@ -110,7 +110,7 @@ impl<'alloc> CloneIn<'alloc> for LookAroundAssertionKind { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Quantifier<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for Quantifier<'_> { type Cloned = Quantifier<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { Quantifier { @@ -176,7 +176,7 @@ impl<'alloc> CloneIn<'alloc> for CharacterClassEscapeKind { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for UnicodePropertyEscape<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for UnicodePropertyEscape<'_> { type Cloned = UnicodePropertyEscape<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { UnicodePropertyEscape { @@ -196,7 +196,7 @@ impl<'alloc> CloneIn<'alloc> for Dot { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for CharacterClass<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for CharacterClass<'_> { type Cloned = CharacterClass<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { CharacterClass { @@ -220,7 +220,7 @@ impl<'alloc> CloneIn<'alloc> for CharacterClassContentsKind { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for CharacterClassContents<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for CharacterClassContents<'_> { type Cloned = CharacterClassContents<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { match self { @@ -257,7 +257,7 @@ impl<'alloc> CloneIn<'alloc> for CharacterClassRange { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ClassStringDisjunction<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ClassStringDisjunction<'_> { type Cloned = ClassStringDisjunction<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ClassStringDisjunction { @@ -268,7 +268,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ClassStringDisjunction<'old } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ClassString<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for ClassString<'_> { type Cloned = ClassString<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { ClassString { @@ -279,7 +279,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for ClassString<'old_alloc> { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for CapturingGroup<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for CapturingGroup<'_> { type Cloned = CapturingGroup<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { CapturingGroup { @@ -290,7 +290,7 @@ impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for CapturingGroup<'old_alloc> } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for IgnoreGroup<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for IgnoreGroup<'_> { type Cloned = IgnoreGroup<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { IgnoreGroup { @@ -333,7 +333,7 @@ impl<'alloc> CloneIn<'alloc> for IndexedReference { } } -impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for NamedReference<'old_alloc> { +impl<'new_alloc> CloneIn<'new_alloc> for NamedReference<'_> { type Cloned = NamedReference<'new_alloc>; fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned { NamedReference { diff --git a/crates/oxc_regular_expression/src/generated/derive_content_eq.rs b/crates/oxc_regular_expression/src/generated/derive_content_eq.rs index 2455b7f13db5b..ba138f7235e38 100644 --- a/crates/oxc_regular_expression/src/generated/derive_content_eq.rs +++ b/crates/oxc_regular_expression/src/generated/derive_content_eq.rs @@ -7,25 +7,25 @@ use oxc_span::cmp::ContentEq; use crate::ast::*; -impl<'a> ContentEq for Pattern<'a> { +impl ContentEq for Pattern<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for Disjunction<'a> { +impl ContentEq for Disjunction<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for Alternative<'a> { +impl ContentEq for Alternative<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for Term<'a> { +impl ContentEq for Term<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::BoundaryAssertion(it) => match other { @@ -92,7 +92,7 @@ impl ContentEq for BoundaryAssertionKind { } } -impl<'a> ContentEq for LookAroundAssertion<'a> { +impl ContentEq for LookAroundAssertion<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.kind, &other.kind) && ContentEq::content_eq(&self.body, &other.body) @@ -105,7 +105,7 @@ impl ContentEq for LookAroundAssertionKind { } } -impl<'a> ContentEq for Quantifier<'a> { +impl ContentEq for Quantifier<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.min, &other.min) && ContentEq::content_eq(&self.max, &other.max) @@ -139,7 +139,7 @@ impl ContentEq for CharacterClassEscapeKind { } } -impl<'a> ContentEq for UnicodePropertyEscape<'a> { +impl ContentEq for UnicodePropertyEscape<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.negative, &other.negative) && ContentEq::content_eq(&self.strings, &other.strings) @@ -154,7 +154,7 @@ impl ContentEq for Dot { } } -impl<'a> ContentEq for CharacterClass<'a> { +impl ContentEq for CharacterClass<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.negative, &other.negative) && ContentEq::content_eq(&self.strings, &other.strings) @@ -169,7 +169,7 @@ impl ContentEq for CharacterClassContentsKind { } } -impl<'a> ContentEq for CharacterClassContents<'a> { +impl ContentEq for CharacterClassContents<'_> { fn content_eq(&self, other: &Self) -> bool { match self { Self::CharacterClassRange(it) => match other { @@ -206,28 +206,28 @@ impl ContentEq for CharacterClassRange { } } -impl<'a> ContentEq for ClassStringDisjunction<'a> { +impl ContentEq for ClassStringDisjunction<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.strings, &other.strings) && ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for ClassString<'a> { +impl ContentEq for ClassString<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.strings, &other.strings) && ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for CapturingGroup<'a> { +impl ContentEq for CapturingGroup<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) && ContentEq::content_eq(&self.body, &other.body) } } -impl<'a> ContentEq for IgnoreGroup<'a> { +impl ContentEq for IgnoreGroup<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.modifiers, &other.modifiers) && ContentEq::content_eq(&self.body, &other.body) @@ -255,7 +255,7 @@ impl ContentEq for IndexedReference { } } -impl<'a> ContentEq for NamedReference<'a> { +impl ContentEq for NamedReference<'_> { fn content_eq(&self, other: &Self) -> bool { ContentEq::content_eq(&self.name, &other.name) } diff --git a/crates/oxc_regular_expression/src/generated/derive_content_hash.rs b/crates/oxc_regular_expression/src/generated/derive_content_hash.rs index 1631eb1470141..dd8466e491bdc 100644 --- a/crates/oxc_regular_expression/src/generated/derive_content_hash.rs +++ b/crates/oxc_regular_expression/src/generated/derive_content_hash.rs @@ -9,25 +9,25 @@ use oxc_span::hash::ContentHash; use crate::ast::*; -impl<'a> ContentHash for Pattern<'a> { +impl ContentHash for Pattern<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for Disjunction<'a> { +impl ContentHash for Disjunction<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for Alternative<'a> { +impl ContentHash for Alternative<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for Term<'a> { +impl ContentHash for Term<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -59,7 +59,7 @@ impl ContentHash for BoundaryAssertionKind { } } -impl<'a> ContentHash for LookAroundAssertion<'a> { +impl ContentHash for LookAroundAssertion<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.kind, state); ContentHash::content_hash(&self.body, state); @@ -72,7 +72,7 @@ impl ContentHash for LookAroundAssertionKind { } } -impl<'a> ContentHash for Quantifier<'a> { +impl ContentHash for Quantifier<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.min, state); ContentHash::content_hash(&self.max, state); @@ -106,7 +106,7 @@ impl ContentHash for CharacterClassEscapeKind { } } -impl<'a> ContentHash for UnicodePropertyEscape<'a> { +impl ContentHash for UnicodePropertyEscape<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.negative, state); ContentHash::content_hash(&self.strings, state); @@ -119,7 +119,7 @@ impl ContentHash for Dot { fn content_hash(&self, _: &mut H) {} } -impl<'a> ContentHash for CharacterClass<'a> { +impl ContentHash for CharacterClass<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.negative, state); ContentHash::content_hash(&self.strings, state); @@ -134,7 +134,7 @@ impl ContentHash for CharacterClassContentsKind { } } -impl<'a> ContentHash for CharacterClassContents<'a> { +impl ContentHash for CharacterClassContents<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&discriminant(self), state); match self { @@ -155,28 +155,28 @@ impl ContentHash for CharacterClassRange { } } -impl<'a> ContentHash for ClassStringDisjunction<'a> { +impl ContentHash for ClassStringDisjunction<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.strings, state); ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for ClassString<'a> { +impl ContentHash for ClassString<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.strings, state); ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for CapturingGroup<'a> { +impl ContentHash for CapturingGroup<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); ContentHash::content_hash(&self.body, state); } } -impl<'a> ContentHash for IgnoreGroup<'a> { +impl ContentHash for IgnoreGroup<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.modifiers, state); ContentHash::content_hash(&self.body, state); @@ -204,7 +204,7 @@ impl ContentHash for IndexedReference { } } -impl<'a> ContentHash for NamedReference<'a> { +impl ContentHash for NamedReference<'_> { fn content_hash(&self, state: &mut H) { ContentHash::content_hash(&self.name, state); } diff --git a/crates/oxc_regular_expression/src/generated/derive_estree.rs b/crates/oxc_regular_expression/src/generated/derive_estree.rs index 9d0c3d49698e3..63c8e2bfd7fbb 100644 --- a/crates/oxc_regular_expression/src/generated/derive_estree.rs +++ b/crates/oxc_regular_expression/src/generated/derive_estree.rs @@ -7,7 +7,7 @@ use serde::{ser::SerializeMap, Serialize, Serializer}; use crate::ast::*; -impl<'a> Serialize for Pattern<'a> { +impl Serialize for Pattern<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Pattern")?; @@ -17,7 +17,7 @@ impl<'a> Serialize for Pattern<'a> { } } -impl<'a> Serialize for Disjunction<'a> { +impl Serialize for Disjunction<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Disjunction")?; @@ -27,7 +27,7 @@ impl<'a> Serialize for Disjunction<'a> { } } -impl<'a> Serialize for Alternative<'a> { +impl Serialize for Alternative<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Alternative")?; @@ -37,7 +37,7 @@ impl<'a> Serialize for Alternative<'a> { } } -impl<'a> Serialize for Term<'a> { +impl Serialize for Term<'_> { fn serialize(&self, serializer: S) -> Result { match self { Term::BoundaryAssertion(x) => Serialize::serialize(x, serializer), @@ -85,7 +85,7 @@ impl Serialize for BoundaryAssertionKind { } } -impl<'a> Serialize for LookAroundAssertion<'a> { +impl Serialize for LookAroundAssertion<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "LookAroundAssertion")?; @@ -119,7 +119,7 @@ impl Serialize for LookAroundAssertionKind { } } -impl<'a> Serialize for Quantifier<'a> { +impl Serialize for Quantifier<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "Quantifier")?; @@ -213,7 +213,7 @@ impl Serialize for CharacterClassEscapeKind { } } -impl<'a> Serialize for UnicodePropertyEscape<'a> { +impl Serialize for UnicodePropertyEscape<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "UnicodePropertyEscape")?; @@ -235,7 +235,7 @@ impl Serialize for Dot { } } -impl<'a> Serialize for CharacterClass<'a> { +impl Serialize for CharacterClass<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "CharacterClass")?; @@ -266,7 +266,7 @@ impl Serialize for CharacterClassContentsKind { } } -impl<'a> Serialize for CharacterClassContents<'a> { +impl Serialize for CharacterClassContents<'_> { fn serialize(&self, serializer: S) -> Result { match self { CharacterClassContents::CharacterClassRange(x) => Serialize::serialize(x, serializer), @@ -292,7 +292,7 @@ impl Serialize for CharacterClassRange { } } -impl<'a> Serialize for ClassStringDisjunction<'a> { +impl Serialize for ClassStringDisjunction<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ClassStringDisjunction")?; @@ -303,7 +303,7 @@ impl<'a> Serialize for ClassStringDisjunction<'a> { } } -impl<'a> Serialize for ClassString<'a> { +impl Serialize for ClassString<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "ClassString")?; @@ -314,7 +314,7 @@ impl<'a> Serialize for ClassString<'a> { } } -impl<'a> Serialize for CapturingGroup<'a> { +impl Serialize for CapturingGroup<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "CapturingGroup")?; @@ -325,7 +325,7 @@ impl<'a> Serialize for CapturingGroup<'a> { } } -impl<'a> Serialize for IgnoreGroup<'a> { +impl Serialize for IgnoreGroup<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "IgnoreGroup")?; @@ -368,7 +368,7 @@ impl Serialize for IndexedReference { } } -impl<'a> Serialize for NamedReference<'a> { +impl Serialize for NamedReference<'_> { fn serialize(&self, serializer: S) -> Result { let mut map = serializer.serialize_map(None)?; map.serialize_entry("type", "NamedReference")?; diff --git a/crates/oxc_regular_expression/src/generated/derive_get_address.rs b/crates/oxc_regular_expression/src/generated/derive_get_address.rs index b3deeb008a491..721315c616f8c 100644 --- a/crates/oxc_regular_expression/src/generated/derive_get_address.rs +++ b/crates/oxc_regular_expression/src/generated/derive_get_address.rs @@ -7,7 +7,7 @@ use oxc_allocator::{Address, GetAddress}; use crate::ast::*; -impl<'a> GetAddress for CharacterClassContents<'a> { +impl GetAddress for CharacterClassContents<'_> { // `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { diff --git a/crates/oxc_transformer/src/lib.rs b/crates/oxc_transformer/src/lib.rs index 8bc0f6da40075..8b003d7216936 100644 --- a/crates/oxc_transformer/src/lib.rs +++ b/crates/oxc_transformer/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(clippy::needless_lifetimes)] //! Transformer / Transpiler //! //! References: diff --git a/crates/oxc_transformer/src/typescript/enum.rs b/crates/oxc_transformer/src/typescript/enum.rs index 472cd1579f221..cf32dc363a1a0 100644 --- a/crates/oxc_transformer/src/typescript/enum.rs +++ b/crates/oxc_transformer/src/typescript/enum.rs @@ -356,7 +356,7 @@ impl<'a> TypeScriptEnum<'a> { let Expression::Identifier(ident) = expr.object() else { return None }; let members = self.enums.get(&ident.name)?; let property = expr.static_property_name()?; - return members.get(property).cloned(); + members.get(property).cloned() } Expression::Identifier(ident) => { if ident.name == "Infinity" { diff --git a/crates/oxc_traverse/scripts/lib/ancestor.mjs b/crates/oxc_traverse/scripts/lib/ancestor.mjs index 56a1af5ca7921..71c9cd2493ca0 100644 --- a/crates/oxc_traverse/scripts/lib/ancestor.mjs +++ b/crates/oxc_traverse/scripts/lib/ancestor.mjs @@ -117,7 +117,8 @@ export default function generateAncestorsCode(types) { clippy::missing_safety_doc, clippy::ptr_as_ptr, clippy::undocumented_unsafe_blocks, - clippy::cast_ptr_alignment + clippy::cast_ptr_alignment, + clippy::needless_lifetimes )] use std::{cell::Cell, marker::PhantomData}; diff --git a/crates/oxc_traverse/src/generated/ancestor.rs b/crates/oxc_traverse/src/generated/ancestor.rs index 0f86473372499..b94d1b1a90b93 100644 --- a/crates/oxc_traverse/src/generated/ancestor.rs +++ b/crates/oxc_traverse/src/generated/ancestor.rs @@ -7,7 +7,8 @@ clippy::missing_safety_doc, clippy::ptr_as_ptr, clippy::undocumented_unsafe_blocks, - clippy::cast_ptr_alignment + clippy::cast_ptr_alignment, + clippy::needless_lifetimes )] use std::{cell::Cell, marker::PhantomData}; diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5f3ff177655ca..6cc20eae8bd04 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.82.0" +channel = "1.83.0" profile = "default" diff --git a/tasks/ast_tools/src/derives/clone_in.rs b/tasks/ast_tools/src/derives/clone_in.rs index d357da2975273..48e6b20669c9b 100644 --- a/tasks/ast_tools/src/derives/clone_in.rs +++ b/tasks/ast_tools/src/derives/clone_in.rs @@ -92,7 +92,7 @@ fn impl_clone_in( ) -> TokenStream { if has_lifetime { quote! { - impl <'old_alloc, 'new_alloc> CloneIn<'new_alloc> for #ty_ident<'old_alloc> { + impl <'new_alloc> CloneIn<'new_alloc> for #ty_ident<'_> { type Cloned = #ty_ident<'new_alloc>; fn clone_in(&self, #alloc_ident: &'new_alloc Allocator) -> Self::Cloned { #body diff --git a/tasks/ast_tools/src/derives/content_eq.rs b/tasks/ast_tools/src/derives/content_eq.rs index cd7bfe12dbac2..496a870403cfd 100644 --- a/tasks/ast_tools/src/derives/content_eq.rs +++ b/tasks/ast_tools/src/derives/content_eq.rs @@ -105,12 +105,11 @@ fn derive_struct(def: &StructDef) -> (&str, TokenStream) { } fn impl_content_eq(def: &TypeDef, other_name: &str, body: &TokenStream) -> TokenStream { - let ty = def.to_type(); - let generics = def.generics(); + let ty = if def.has_lifetime() { def.to_elided_type() } else { def.to_type_elide() }; let other = other_name.to_ident(); quote! { - impl #generics ContentEq for #ty { + impl ContentEq for #ty { fn content_eq(&self, #other: &Self) -> bool { #body } diff --git a/tasks/ast_tools/src/derives/content_hash.rs b/tasks/ast_tools/src/derives/content_hash.rs index 9bb7e577957ec..d44c1ea645690 100644 --- a/tasks/ast_tools/src/derives/content_hash.rs +++ b/tasks/ast_tools/src/derives/content_hash.rs @@ -104,12 +104,11 @@ fn derive_struct(def: &StructDef) -> (&str, TokenStream) { } fn impl_content_hash(def: &TypeDef, hasher_name: &str, body: &TokenStream) -> TokenStream { - let ty = def.to_type(); - let generics = def.generics(); + let ty = if def.has_lifetime() { def.to_elided_type() } else { def.to_type_elide() }; let hasher = hasher_name.to_ident(); quote! { - impl #generics ContentHash for #ty { + impl ContentHash for #ty { fn content_hash(&self, #hasher: &mut H) { #body } diff --git a/tasks/ast_tools/src/derives/estree.rs b/tasks/ast_tools/src/derives/estree.rs index 2891b2bd6331d..48de37d199409 100644 --- a/tasks/ast_tools/src/derives/estree.rs +++ b/tasks/ast_tools/src/derives/estree.rs @@ -54,9 +54,9 @@ impl Derive for DeriveESTree { }; let ident = def.ident(); - let lifetime = if def.has_lifetime() { quote!(<'a>) } else { TokenStream::new() }; + let lifetime = if def.has_lifetime() { quote!(<'_>) } else { TokenStream::new() }; quote! { - impl #lifetime Serialize for #ident #lifetime { + impl Serialize for #ident #lifetime { fn serialize(&self, serializer: S) -> Result { #body } diff --git a/tasks/ast_tools/src/derives/get_address.rs b/tasks/ast_tools/src/derives/get_address.rs index 0834b24983dc3..c3ddd6674c52b 100644 --- a/tasks/ast_tools/src/derives/get_address.rs +++ b/tasks/ast_tools/src/derives/get_address.rs @@ -36,7 +36,7 @@ impl Derive for DeriveGetAddress { } fn derive_enum(def: &EnumDef) -> TokenStream { - let target_type = def.to_type(); + let target_type = def.to_elided_type(); let matches = def.all_variants().map(|variant| { assert!( @@ -50,7 +50,7 @@ fn derive_enum(def: &EnumDef) -> TokenStream { }); quote! { - impl<'a> GetAddress for #target_type { + impl GetAddress for #target_type { ///@ `#[inline]` because compiler should boil this down to a single assembly instruction #[inline] fn address(&self) -> Address { diff --git a/tasks/ast_tools/src/derives/get_span.rs b/tasks/ast_tools/src/derives/get_span.rs index f54dc9c74b3f1..3f9d0d206b4e4 100644 --- a/tasks/ast_tools/src/derives/get_span.rs +++ b/tasks/ast_tools/src/derives/get_span.rs @@ -129,8 +129,7 @@ fn derive_enum( where U: Fn(TokenStream) -> TokenStream, { - let target_type = def.to_type(); - let generics = def.generics(); + let target_type = if def.has_lifetime() { def.to_elided_type() } else { def.to_type_elide() }; let matches = def.all_variants().map(|var| { let ident = var.ident(); @@ -142,7 +141,7 @@ where }); quote! { - impl #generics #trait_name for #target_type { + impl #trait_name for #target_type { fn #method_name(#self_type) -> #result_type { match self { #(#matches),* @@ -164,8 +163,7 @@ fn derive_struct( where R: Fn(TokenStream) -> TokenStream, { - let target_type = def.to_type(); - let generics = def.generics(); + let target_type = if def.has_lifetime() { def.to_elided_type() } else { def.to_type_elide() }; let span_field = def.fields.iter().find(|field| field.markers.span); let result_expr = if let Some(span_field) = span_field { @@ -177,7 +175,7 @@ where }; quote! { - impl #generics #trait_name for #target_type { + impl #trait_name for #target_type { #[inline] fn #method_name(#self_type) -> #result_type { #result_expr diff --git a/tasks/ast_tools/src/generators/ast_kind.rs b/tasks/ast_tools/src/generators/ast_kind.rs index 20a6fc9400e1a..8c4265978a45f 100644 --- a/tasks/ast_tools/src/generators/ast_kind.rs +++ b/tasks/ast_tools/src/generators/ast_kind.rs @@ -150,7 +150,7 @@ impl Generator for AstKindGenerator { } ///@@line_break - impl<'a> GetSpan for AstKind<'a> { + impl GetSpan for AstKind<'_> { #[allow(clippy::match_same_arms)] fn span(&self) -> Span { match self { diff --git a/tasks/ast_tools/src/generators/get_id.rs b/tasks/ast_tools/src/generators/get_id.rs index b684c0aa89bbf..e487f8c01dcbe 100644 --- a/tasks/ast_tools/src/generators/get_id.rs +++ b/tasks/ast_tools/src/generators/get_id.rs @@ -100,11 +100,11 @@ fn generate_for_type(def: &TypeDef) -> Option { } let struct_name_ident = struct_name.to_ident(); - let lifetime = if def.has_lifetime { quote!(<'a>) } else { TokenStream::default() }; + let lifetime = if def.has_lifetime { quote!(<'_>) } else { TokenStream::default() }; Some(quote! { ///@@line_break - impl #lifetime #struct_name_ident #lifetime { + impl #struct_name_ident #lifetime { #(#methods)* } }) diff --git a/tasks/ast_tools/src/schema/to_type.rs b/tasks/ast_tools/src/schema/to_type.rs index 2aa6c180f15d1..14ddedf01abc5 100644 --- a/tasks/ast_tools/src/schema/to_type.rs +++ b/tasks/ast_tools/src/schema/to_type.rs @@ -10,6 +10,7 @@ use super::{ pub trait ToType { fn to_type(&self) -> Type; fn to_type_elide(&self) -> Type; + fn to_elided_type(&self) -> Type; fn to_type_with_explicit_generics(&self, generics: TokenStream) -> Type; } @@ -22,6 +23,10 @@ impl ToType for TypeRef { self.to_type_with_explicit_generics(proc_macro2::TokenStream::default()) } + fn to_elided_type(&self) -> Type { + self.to_type_with_explicit_generics(parse_quote! {<'_>}) + } + fn to_type_with_explicit_generics(&self, generics: proc_macro2::TokenStream) -> Type { let ident = self.name().first_ident(); parse_quote!(#ident #generics) @@ -40,6 +45,10 @@ macro_rules! impl_to_type { self.to_type_with_explicit_generics(TokenStream::default()) } + fn to_elided_type(&self) -> Type { + self.to_type_with_explicit_generics(parse_quote! {<'_>}) + } + fn to_type_with_explicit_generics(&self, generics: TokenStream) -> Type { let name = self.ident(); parse_quote!(#name #generics) diff --git a/tasks/coverage/src/lib.rs b/tasks/coverage/src/lib.rs index 02489afb2cad2..f7fcf7cf672ce 100644 --- a/tasks/coverage/src/lib.rs +++ b/tasks/coverage/src/lib.rs @@ -118,6 +118,7 @@ impl AppArgs { .spawn() .expect("Run runtime.js failed"); Test262Suite::::new().run_async(self); + let _ = runtime_process.wait(); let _ = runtime_process.kill(); }