Skip to content

Commit

Permalink
don't collect path_params into a vec
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu-LAURENT39 committed Aug 4, 2024
1 parent 77e0067 commit f17e8df
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ pub(crate) fn fastapi_unused_path_parameter(
.expression
.as_name_expr()
.map(|name_expr| (name_expr.id().to_string(), inner_expr.range()))
})
.collect::<Vec<_>>();
});

// Now we extract the arguments from the function signature
let named_args = function_def
Expand Down

0 comments on commit f17e8df

Please sign in to comment.