@@ -676,7 +676,8 @@ private struct _BSONUnkeyedEncodingContainer: UnkeyedEncodingContainer {
676676 }
677677
678678 public mutating func nestedContainer< NestedKey> ( keyedBy _: NestedKey . Type )
679- -> KeyedEncodingContainer < NestedKey > {
679+ -> KeyedEncodingContainer < NestedKey >
680+ {
680681 self . codingPath. append ( _BSONKey ( index: self . count) )
681682 defer { self . codingPath. removeLast ( ) }
682683
@@ -769,7 +770,7 @@ private class MutableArray: BSONValue {
769770
770771 fileprivate init ( ) { }
771772
772- internal required init ( fromExtJSON json : JSON , keyPath: [ String ] ) throws {
773+ internal required init ( fromExtJSON _ : JSON , keyPath _ : [ String ] ) throws {
773774 fatalError ( " MutableArray: BSONValue.init(fromExtJSON) should be unused " )
774775 }
775776
@@ -783,11 +784,11 @@ private class MutableArray: BSONValue {
783784
784785 /// methods required by the BSONValue protocol that we don't actually need/use. MutableArray
785786 /// 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 {
787788 fatalError ( " MutableArray is not meant to be read from a ByteBuffer " )
788789 }
789790
790- func write( to buffer : inout ByteBuffer ) {
791+ func write( to _ : inout ByteBuffer ) {
791792 fatalError ( " MutableArray is not meant to be written to a ByteBuffer " )
792793 }
793794
@@ -865,7 +866,7 @@ private class MutableDictionary: BSONValue {
865866
866867 fileprivate init ( ) { }
867868
868- internal required init ? ( fromExtJSON json : JSON , keyPath: [ String ] ) throws {
869+ internal required init ? ( fromExtJSON _ : JSON , keyPath _ : [ String ] ) throws {
869870 fatalError ( " MutableDictionary: BSONValue.init(fromExtJSON) should be unused " )
870871 }
871872
@@ -879,11 +880,11 @@ private class MutableDictionary: BSONValue {
879880
880881 /// methods required by the BSONValue protocol that we don't actually need/use. MutableDictionary
881882 /// 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 {
883884 fatalError ( " MutableDictionary is not meant to be read from a ByteBuffer " )
884885 }
885886
886- func write( to buffer : inout ByteBuffer ) {
887+ func write( to _ : inout ByteBuffer ) {
887888 fatalError ( " MutableDictionary is not meant to be encoded to a ByteBuffer " )
888889 }
889890
0 commit comments