mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-12-03 02:58:27 +00:00
fix: resolve mutability-related warning
This commit is contained in:
@@ -130,7 +130,7 @@ extension ComposingText {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
while var (convertTargetElements, lastElement, count) = stack.popLast() {
|
||||
while case .some((var convertTargetElements, let lastElement, let count)) = stack.popLast() {
|
||||
if rightIndexRange.contains(count + left - 1) {
|
||||
if let convertTarget = ComposingText.getConvertTargetIfRightSideIsValid(lastElement: lastElement, of: self.input, to: count + left, convertTargetElements: convertTargetElements)?.map({$0.toKatakana()}) {
|
||||
stringToInfo.append((convertTarget, (count + left - 1)))
|
||||
|
||||
Reference in New Issue
Block a user