From c6a651aa12447d50c22db3189ef38cff90fc267b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 5 Nov 2023 14:16:17 -0800 Subject: [PATCH] Update name of ExprReturn parse function to match variant name --- src/expr.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/expr.rs b/src/expr.rs index ae723242eb..1988b544fd 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1614,7 +1614,7 @@ pub(crate) mod parsing { } else if input.peek(Token![continue]) { input.parse().map(Expr::Continue) } else if input.peek(Token![return]) { - expr_ret(input, allow_struct).map(Expr::Return) + expr_return(input, allow_struct).map(Expr::Return) } else if input.peek(token::Bracket) { array_or_repeat(input) } else if input.peek(Token![let]) { @@ -2223,7 +2223,7 @@ pub(crate) mod parsing { impl Parse for ExprReturn { fn parse(input: ParseStream) -> Result { let allow_struct = AllowStruct(true); - expr_ret(input, allow_struct) + expr_return(input, allow_struct) } } @@ -2462,7 +2462,7 @@ pub(crate) mod parsing { } #[cfg(feature = "full")] - fn expr_ret(input: ParseStream, allow_struct: AllowStruct) -> Result { + fn expr_return(input: ParseStream, allow_struct: AllowStruct) -> Result { Ok(ExprReturn { attrs: Vec::new(), return_token: input.parse()?,