Fix clippy warnings

This commit is contained in:
David Peter 2025-09-24 18:10:52 +02:00
parent 9fdedb5e34
commit a285a0cdb6

View file

@ -1280,7 +1280,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 {
@ -1288,7 +1288,7 @@ impl<'db> Parameters<'db> {
default_type: default_type(param),
},
form: ParameterForm::Value,
};
}
} else {
Parameter::from_node_and_kind(
db,