This commit is contained in:
Douglas Creager 2025-11-11 19:53:15 -05:00
parent c5d66318a6
commit 60d16288c5
1 changed files with 1 additions and 1 deletions

View File

@ -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),
} }
} }