mirror of https://github.com/astral-sh/ruff
clippy
This commit is contained in:
parent
d30cb13028
commit
2d472575f2
|
|
@ -612,7 +612,7 @@ impl<'db> ScopeInference<'db> {
|
|||
pub(crate) fn inferred_function_signature(&self) -> Option<InferredFunctionSignature<'db>> {
|
||||
self.extra
|
||||
.as_ref()
|
||||
.and_then(|extra| extra.signature.as_ref().cloned())
|
||||
.and_then(|extra| extra.signature.clone())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -794,7 +794,7 @@ impl<'db> DefinitionInference<'db> {
|
|||
pub(crate) fn inferred_function_signature(&self) -> Option<InferredFunctionSignature<'db>> {
|
||||
self.extra
|
||||
.as_ref()
|
||||
.and_then(|extra| extra.signature.as_ref().cloned())
|
||||
.and_then(|extra| extra.signature.clone())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -538,7 +538,7 @@ impl<'db> Signature<'db> {
|
|||
return Self::bottom();
|
||||
};
|
||||
|
||||
let mut defaults = defaults.into_iter();
|
||||
let mut defaults = defaults.iter();
|
||||
for parameter in &mut inferred_signature.parameters {
|
||||
parameter.update_default_type(|| {
|
||||
defaults
|
||||
|
|
|
|||
Loading…
Reference in New Issue