mirror of https://github.com/astral-sh/ruff
clippy
This commit is contained in:
parent
c5d66318a6
commit
60d16288c5
|
|
@ -147,7 +147,7 @@ impl<'db> BoundTypeVarInstance<'db> {
|
||||||
impl<'a, 'db> InferableTypeVars<'a, 'db> {
|
impl<'a, 'db> InferableTypeVars<'a, 'db> {
|
||||||
pub(crate) fn merge(&'a self, other: &'a InferableTypeVars<'a, 'db>) -> Self {
|
pub(crate) fn merge(&'a self, other: &'a InferableTypeVars<'a, 'db>) -> Self {
|
||||||
match (self, other) {
|
match (self, other) {
|
||||||
(InferableTypeVars::None, other) | (other, InferableTypeVars::None) => other.clone(),
|
(InferableTypeVars::None, other) | (other, InferableTypeVars::None) => *other,
|
||||||
_ => InferableTypeVars::Two(self, other),
|
_ => InferableTypeVars::Two(self, other),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue