mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:44:56 +00:00
Fix clippy warnings
This commit is contained in:
parent
e76d5233a9
commit
4b434a06ae
1 changed files with 2 additions and 2 deletions
|
@ -1283,7 +1283,7 @@ impl<'db> Parameters<'db> {
|
||||||
|
|
||||||
let pos_only_param = |param: &ast::ParameterWithDefault| {
|
let pos_only_param = |param: &ast::ParameterWithDefault| {
|
||||||
if let Some(inferred_annotation_type) = inferred_annotation(param) {
|
if let Some(inferred_annotation_type) = inferred_annotation(param) {
|
||||||
return Parameter {
|
Parameter {
|
||||||
annotated_type: Some(inferred_annotation_type),
|
annotated_type: Some(inferred_annotation_type),
|
||||||
inferred_annotation: true,
|
inferred_annotation: true,
|
||||||
kind: ParameterKind::PositionalOnly {
|
kind: ParameterKind::PositionalOnly {
|
||||||
|
@ -1291,7 +1291,7 @@ impl<'db> Parameters<'db> {
|
||||||
default_type: default_type(param),
|
default_type: default_type(param),
|
||||||
},
|
},
|
||||||
form: ParameterForm::Value,
|
form: ParameterForm::Value,
|
||||||
};
|
}
|
||||||
} else {
|
} else {
|
||||||
Parameter::from_node_and_kind(
|
Parameter::from_node_and_kind(
|
||||||
db,
|
db,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue