mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 02:13:08 +00:00
Remove allcation in parse_identifier
(#12103)
This commit is contained in:
parent
47b227394e
commit
da78de0439
1 changed files with 1 additions and 1 deletions
|
@ -478,7 +478,7 @@ impl<'src> Parser<'src> {
|
||||||
unreachable!();
|
unreachable!();
|
||||||
};
|
};
|
||||||
return ast::Identifier {
|
return ast::Identifier {
|
||||||
id: name.to_string(),
|
id: name.into_string(),
|
||||||
range,
|
range,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue