Fix clippy warnings

This commit is contained in:
David Peter 2025-09-24 18:10:52 +02:00
parent e76d5233a9
commit 4b434a06ae

View file

@ -1283,7 +1283,7 @@ impl<'db> Parameters<'db> {
let pos_only_param = |param: &ast::ParameterWithDefault| {
if let Some(inferred_annotation_type) = inferred_annotation(param) {
return Parameter {
Parameter {
annotated_type: Some(inferred_annotation_type),
inferred_annotation: true,
kind: ParameterKind::PositionalOnly {
@ -1291,7 +1291,7 @@ impl<'db> Parameters<'db> {
default_type: default_type(param),
},
form: ParameterForm::Value,
};
}
} else {
Parameter::from_node_and_kind(
db,