Skip to content

Commit f116952

Browse files
authored
Remove unnecessary lifetimes (#5769)
1 parent dadd488 commit f116952

File tree

97 files changed

+108
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+108
-126
lines changed

rust/parse_ast/src/ast_nodes/array_expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::convert_ast::converter::ast_constants::{
55
};
66
use crate::convert_ast::converter::AstConverter;
77

8-
impl<'a> AstConverter<'a> {
8+
impl AstConverter<'_> {
99
pub(crate) fn store_array_expression(&mut self, array_literal: &ArrayLit) {
1010
let end_position = self.add_type_and_start(
1111
&TYPE_ARRAY_EXPRESSION,

rust/parse_ast/src/ast_nodes/array_pattern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::convert_ast::converter::ast_constants::{
55
};
66
use crate::convert_ast::converter::AstConverter;
77

8-
impl<'a> AstConverter<'a> {
8+
impl AstConverter<'_> {
99
pub(crate) fn store_array_pattern(&mut self, array_pattern: &ArrayPat) {
1010
let end_position = self.add_type_and_start(
1111
&TYPE_ARRAY_PATTERN,

rust/parse_ast/src/ast_nodes/arrow_function_expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::convert_ast::converter::ast_constants::{
99
use crate::convert_ast::converter::{convert_annotation, AstConverter};
1010
use crate::store_arrow_function_expression_flags;
1111

12-
impl<'a> AstConverter<'a> {
12+
impl AstConverter<'_> {
1313
pub(crate) fn store_arrow_function_expression(&mut self, arrow_expression: &ArrowExpr) {
1414
let end_position = self.add_type_and_start(
1515
&TYPE_ARROW_FUNCTION_EXPRESSION,

rust/parse_ast/src/ast_nodes/assignment_expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::convert_ast::converter::string_constants::{
99
use crate::convert_ast::converter::AstConverter;
1010
use crate::store_assignment_expression;
1111

12-
impl<'a> AstConverter<'a> {
12+
impl AstConverter<'_> {
1313
pub(crate) fn store_assignment_expression(&mut self, assignment_expression: &AssignExpr) {
1414
store_assignment_expression!(
1515
self,

rust/parse_ast/src/ast_nodes/assignment_pattern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::convert_ast::converter::ast_constants::{
77
};
88
use crate::convert_ast::converter::AstConverter;
99

10-
impl<'a> AstConverter<'a> {
10+
impl AstConverter<'_> {
1111
pub(crate) fn store_assignment_pattern_and_get_left_position(
1212
&mut self,
1313
span: &Span,

rust/parse_ast/src/ast_nodes/await_expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use swc_ecma_ast::AwaitExpr;
33
use crate::convert_ast::converter::AstConverter;
44
use crate::store_await_expression;
55

6-
impl<'a> AstConverter<'a> {
6+
impl AstConverter<'_> {
77
pub(crate) fn store_await_expression(&mut self, await_expression: &AwaitExpr) {
88
store_await_expression!(
99
self,

rust/parse_ast/src/ast_nodes/binary_expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::convert_ast::converter::string_constants::{
1313
};
1414
use crate::convert_ast::converter::AstConverter;
1515

16-
impl<'a> AstConverter<'a> {
16+
impl AstConverter<'_> {
1717
pub(crate) fn store_binary_expression(&mut self, binary_expression: &BinExpr) {
1818
let end_position = self.add_type_and_start(
1919
match binary_expression.op {

rust/parse_ast/src/ast_nodes/block_statement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::convert_ast::converter::ast_constants::{
55
};
66
use crate::convert_ast::converter::AstConverter;
77

8-
impl<'a> AstConverter<'a> {
8+
impl AstConverter<'_> {
99
pub(crate) fn store_block_statement(
1010
&mut self,
1111
block_statement: &BlockStmt,

rust/parse_ast/src/ast_nodes/break_statement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use swc_ecma_ast::BreakStmt;
33
use crate::convert_ast::converter::AstConverter;
44
use crate::store_break_statement;
55

6-
impl<'a> AstConverter<'a> {
6+
impl AstConverter<'_> {
77
pub(crate) fn store_break_statement(&mut self, break_statement: &BreakStmt) {
88
store_break_statement!(
99
self,

rust/parse_ast/src/ast_nodes/call_expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::convert_ast::converter::ast_constants::{
99
use crate::convert_ast::converter::{convert_annotation, AstConverter};
1010
use crate::store_call_expression_flags;
1111

12-
impl<'a> AstConverter<'a> {
12+
impl AstConverter<'_> {
1313
pub(crate) fn store_call_expression(
1414
&mut self,
1515
span: &Span,

0 commit comments

Comments
 (0)