style: cargo clippy

This commit is contained in:
PoiScript 2024-05-08 19:41:12 +08:00
parent 41f3622024
commit da8b3385bf
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E

View file

@ -120,7 +120,7 @@ fn node_property_node(input: Input) -> IResult<Input, GreenElement, ()> {
b.ws(ws1);
b.push(colon1);
if name.ends_with("+") {
if name.ends_with('+') {
let (plus, name) = name.take_split(name.len() - 1);
b.text(name);
b.token(PLUS, plus);