@@ -676,7 +676,8 @@ private struct _BSONUnkeyedEncodingContainer: UnkeyedEncodingContainer {
676
676
}
677
677
678
678
public mutating func nestedContainer< NestedKey> ( keyedBy _: NestedKey . Type )
679
- -> KeyedEncodingContainer < NestedKey > {
679
+ -> KeyedEncodingContainer < NestedKey >
680
+ {
680
681
self . codingPath. append ( _BSONKey ( index: self . count) )
681
682
defer { self . codingPath. removeLast ( ) }
682
683
@@ -769,7 +770,7 @@ private class MutableArray: BSONValue {
769
770
770
771
fileprivate init ( ) { }
771
772
772
- internal required init ( fromExtJSON json : JSON , keyPath: [ String ] ) throws {
773
+ internal required init ( fromExtJSON _ : JSON , keyPath _ : [ String ] ) throws {
773
774
fatalError ( " MutableArray: BSONValue.init(fromExtJSON) should be unused " )
774
775
}
775
776
@@ -783,11 +784,11 @@ private class MutableArray: BSONValue {
783
784
784
785
/// methods required by the BSONValue protocol that we don't actually need/use. MutableArray
785
786
/// is just a BSONValue to simplify usage alongside true BSONValues within the encoder.
786
- static func read( from buffer : inout ByteBuffer ) throws -> BSON {
787
+ static func read( from _ : inout ByteBuffer ) throws -> BSON {
787
788
fatalError ( " MutableArray is not meant to be read from a ByteBuffer " )
788
789
}
789
790
790
- func write( to buffer : inout ByteBuffer ) {
791
+ func write( to _ : inout ByteBuffer ) {
791
792
fatalError ( " MutableArray is not meant to be written to a ByteBuffer " )
792
793
}
793
794
@@ -865,7 +866,7 @@ private class MutableDictionary: BSONValue {
865
866
866
867
fileprivate init ( ) { }
867
868
868
- internal required init ? ( fromExtJSON json : JSON , keyPath: [ String ] ) throws {
869
+ internal required init ? ( fromExtJSON _ : JSON , keyPath _ : [ String ] ) throws {
869
870
fatalError ( " MutableDictionary: BSONValue.init(fromExtJSON) should be unused " )
870
871
}
871
872
@@ -879,11 +880,11 @@ private class MutableDictionary: BSONValue {
879
880
880
881
/// methods required by the BSONValue protocol that we don't actually need/use. MutableDictionary
881
882
/// is just a BSONValue to simplify usage alongside true BSONValues within the encoder.
882
- static func read( from buffer : inout ByteBuffer ) throws -> BSON {
883
+ static func read( from _ : inout ByteBuffer ) throws -> BSON {
883
884
fatalError ( " MutableDictionary is not meant to be read from a ByteBuffer " )
884
885
}
885
886
886
- func write( to buffer : inout ByteBuffer ) {
887
+ func write( to _ : inout ByteBuffer ) {
887
888
fatalError ( " MutableDictionary is not meant to be encoded to a ByteBuffer " )
888
889
}
889
890
0 commit comments