Skip to content

Commit

Permalink
Replace matches!(foo, None) with .is_none()
Browse files Browse the repository at this point in the history
recommended by nightly clippy
  • Loading branch information
dburgener committed Jun 8, 2023
1 parent 3bbf5d8 commit 2f5d467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3189,7 +3189,7 @@ pub fn validate_arguments<'a>(

if function_args_iter
.clone()
.take_while(|a| matches!(a.default_value, None))
.take_while(|a| a.default_value.is_none())
.count()
> call_args.len()
|| function_args_len < call_args.len()
Expand Down

0 comments on commit 2f5d467

Please sign in to comment.