Skip to content

Commit

Permalink
fix: clippy linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph0enixKM committed Dec 1, 2024
1 parent a837380 commit 82817af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/function/invocation_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn run_function_with_args(meta: &mut ParserMetadata, mut fun: FunctionDecl, args
})?;
// Set the new return type or null if nothing was returned
if let Type::Generic = fun.returns {
fun.returns = context.fun_ret_type.clone().unwrap_or_else(|| Type::Null);
fun.returns = context.fun_ret_type.clone().unwrap_or(Type::Null);
};
// Set the new argument types
fun.arg_types = args.to_vec();
Expand Down

0 comments on commit 82817af

Please sign in to comment.