fix build error in swift 5.10

This commit is contained in:
Miwa / Ensan
2024-03-06 23:29:41 +09:00
parent 4038f51090
commit 2c4af95885
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ struct LOUDS: Sendable {
}
return flatChar2nodeIndices
}
self.flatChar2nodeIndicesIndex = consume flatChar2nodeIndicesIndex
self.flatChar2nodeIndicesIndex = flatChar2nodeIndicesIndex
var rankLarge: [UInt32] = .init(repeating: 0, count: bytes.count + 1)
rankLarge.withUnsafeMutableBufferPointer { buffer in
@ -62,7 +62,7 @@ struct LOUDS: Sendable {
buffer[i + 1] = buffer[i] &+ UInt32(Self.unit &- byte.nonzeroBitCount)
}
}
self.rankLarge = consume rankLarge
self.rankLarge = rankLarge
}
/// parentNodeIndex01Index

View File

@ -55,7 +55,7 @@ extension InputGraphProtocol {
mutating func insert(_ node: Node, connection: InputGraphStructure.Connection = .none) -> Int {
var nodes = self.nodes
let index = self.structure.insert(node, nodes: &nodes, displayedTextRange: node.displayedTextRange, inputElementsRange: node.inputElementsRange, connection: connection)
self.nodes = consume nodes
self.nodes = nodes
return index
}
}