Skip to content

Commit 07e1dae

Browse files
committed
syntax
1 parent 3c6c63c commit 07e1dae

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Sources/SimpleHTTP/DataCoder/FormURL/FormURLEncoder.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ import Foundation
33
public struct FormURLEncoder: ContentDataEncoder {
44
public static let contentType: HTTPContentType = .formURLEncoded
55

6-
public init() {
6+
public init() { }
77

8-
}
9-
10-
public func encode<T: Encodable>(_ value: T) throws -> Data {
8+
public func encode(_ value: some Encodable) throws -> Data {
119
let encoder = FormKeyValueEncoder()
1210
try value.encode(to: encoder)
1311

0 commit comments

Comments
 (0)