From c322baaaefd56bb33f3a2ecfbf3a334afc9112d5 Mon Sep 17 00:00:00 2001 From: David Peter Date: Thu, 20 Feb 2025 09:47:51 +0100 Subject: [PATCH] Fix clippy suggestion --- crates/red_knot_python_semantic/src/types.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/red_knot_python_semantic/src/types.rs b/crates/red_knot_python_semantic/src/types.rs index c70ccea6a6..476fad6693 100644 --- a/crates/red_knot_python_semantic/src/types.rs +++ b/crates/red_knot_python_semantic/src/types.rs @@ -1855,9 +1855,8 @@ impl<'db> Type<'db> { // Here, we also model `types.FunctionType.__get__`, but now we consider a call to // this as a function, i.e. we also expect the `self` argument to be passed in. - let second_argument_is_none = arguments - .second_argument() - .map_or(false, |ty| ty.is_none(db)); + let second_argument_is_none = + arguments.second_argument().is_some_and(|ty| ty.is_none(db)); let signature = Signature::new( Parameters::new([