Skip to content

Commit a624220

Browse files
authored
Remove redundant BasicLabel cloning in parser TokenTree rule (#9486)
1 parent 36243aa commit a624220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cairo-lang-sierra/src/parser.lalrpop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ TokenTree: String = {
9999
<value:BracesTokenTree> => value,
100100
<value:BracketsTokenTree> => value,
101101
"(" <parts:(<TokenTree>)*> ")" => format!("({})", parts.join("")),
102-
<label:BasicLabel> => label.to_string(),
102+
<label:BasicLabel> => label,
103103
<num:BigInt> => num.to_string(),
104104
":" => <>.to_string(),
105105
"," => <>.to_string(),

0 commit comments

Comments
 (0)