Skip to content

Commit

Permalink
Remove allcation in parse_identifier (#12103)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser authored Jun 29, 2024
1 parent 47b2273 commit da78de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_python_parser/src/parser/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ impl<'src> Parser<'src> {
unreachable!();
};
return ast::Identifier {
id: name.to_string(),
id: name.into_string(),
range,
};
}
Expand Down

0 comments on commit da78de0

Please sign in to comment.