diff --git a/crates/ruff_python_parser/src/parser/expression.rs b/crates/ruff_python_parser/src/parser/expression.rs index 52788dd98114a..dda172ee2127f 100644 --- a/crates/ruff_python_parser/src/parser/expression.rs +++ b/crates/ruff_python_parser/src/parser/expression.rs @@ -478,7 +478,7 @@ impl<'src> Parser<'src> { unreachable!(); }; return ast::Identifier { - id: name.to_string(), + id: name.into_string(), range, }; }