groue / GRMustache.swift

Flexible Mustache templates for Swift
http://mustache.github.com/
MIT License
594 stars 155 forks source link

Fix warning in `EachFilter` in Xcode 14.3 #89

Closed NSHaoSong closed 1 year ago

NSHaoSong commented 1 year ago

Fix the following warning in Xcode 14.3 (14E222b):

Sources/EachFilter.swift:46:65: Tuple conversion from '(key: String, value: MustacheBox)' to '(key: String, box: MustacheBox)' mismatches labels
Screenshot 2023-04-05 at 7 54 29 AM

Related changes in apple/swift:

// If we had a label mismatch, emit a warning. This is something we // shouldn't permit, as it's more permissive than what a conversion would // allow. Ideally we'd turn this into an error in Swift 6 mode.