From 2c95befaff515e9c55d2a6b3ba2b1fb5b3cff8e1 Mon Sep 17 00:00:00 2001 From: Douglas Creager Date: Mon, 5 Jan 2026 16:20:40 -0500 Subject: [PATCH] clippy --- crates/ty_python_semantic/src/types/generics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ty_python_semantic/src/types/generics.rs b/crates/ty_python_semantic/src/types/generics.rs index 5780b9e9ce..167760bc8a 100644 --- a/crates/ty_python_semantic/src/types/generics.rs +++ b/crates/ty_python_semantic/src/types/generics.rs @@ -1672,7 +1672,7 @@ impl<'db> SpecializationBuilder<'db> { let upper = IntersectionType::from_elements( self.db, - std::iter::chain(bounds.upper, [bound]), + bounds.upper.into_iter().chain([bound]), ); if upper != bound { self.add_type_mapping(bound_typevar, upper, variance, &mut f);