diff --git a/crates/ruff_python_formatter/src/expression/mod.rs b/crates/ruff_python_formatter/src/expression/mod.rs index 4d980c2aed..4b6c159fe2 100644 --- a/crates/ruff_python_formatter/src/expression/mod.rs +++ b/crates/ruff_python_formatter/src/expression/mod.rs @@ -1159,7 +1159,7 @@ impl CallChainLayout { } } - pub(crate) fn is_fluent(&self) -> bool { + pub(crate) fn is_fluent(self) -> bool { matches!(self, CallChainLayout::Fluent(_)) } }