Skip to content

Commit 7392a3c

Browse files
committed
[Parser] Remove an unnecessary use of mutating
1 parent 06f123a commit 7392a3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftParser/TokenConsumer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ extension TokenConsumer {
138138
/// If this is the case, return the `Subset` case that the parser is positioned in
139139
/// as well as a handle to consume that token.
140140
@inline(__always)
141-
mutating func at<SpecSet: TokenSpecSet>(
141+
func at<SpecSet: TokenSpecSet>(
142142
anyIn specSet: SpecSet.Type
143143
) -> (spec: SpecSet, handle: TokenConsumptionHandle)? {
144144
#if SWIFTPARSER_ENABLE_ALTERNATE_TOKEN_INTROSPECTION

0 commit comments

Comments
 (0)