@@ -26,7 +26,7 @@ public struct List<NodeType: ListNode> :
26
26
Sequence , IteratorProtocol , CustomReflectable
27
27
where NodeType. Element == NodeType {
28
28
private var currentNode : NodeType ?
29
-
29
+
30
30
public init ( startAt: NodeType ? ) { currentNode = startAt }
31
31
32
32
public mutating func next( ) -> NodeType ? {
@@ -47,7 +47,7 @@ public struct ReverseList<NodeType: ListNode> :
47
47
Sequence , IteratorProtocol , CustomReflectable
48
48
where NodeType. Element == NodeType {
49
49
private var currentNode : NodeType ?
50
-
50
+
51
51
public init ( startAt: NodeType ? ) { currentNode = startAt }
52
52
53
53
public mutating func next( ) -> NodeType ? {
@@ -84,7 +84,7 @@ extension BridgedStringRef {
84
84
let buffer = UnsafeBufferPointer < UInt8 > ( start: data, count: Int ( length) )
85
85
return String ( decoding: buffer, as: UTF8 . self)
86
86
}
87
-
87
+
88
88
func takeString( ) -> String {
89
89
let str = string
90
90
freeBridgedStringRef ( self )
@@ -117,7 +117,7 @@ extension UnsafeMutablePointer where Pointee == BridgedSwiftObject {
117
117
let ptr = Unmanaged . passUnretained ( object) . toOpaque ( )
118
118
self = ptr. bindMemory ( to: BridgedSwiftObject . self, capacity: 1 )
119
119
}
120
-
120
+
121
121
func getAs< T: AnyObject > ( _ objectType: T . Type ) -> T {
122
122
return Unmanaged < T > . fromOpaque ( self ) . takeUnretainedValue ( )
123
123
}
0 commit comments