Skip to content

Commit

Permalink
Fix imports and rename some files
Browse files Browse the repository at this point in the history
  • Loading branch information
ptoffy committed Nov 19, 2024
1 parent 2e683dd commit eabe133
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import Foundation
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif

extension FormDataDecoder.Decoder: SingleValueDecodingContainer {
func decodeNil() -> Bool {
Expand Down
1 change: 0 additions & 1 deletion Sources/MultipartKit/MultipartSection.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Foundation
import HTTPTypes

public enum MultipartSection<Body: MultipartPartBodyElement>: Equatable, Sendable {
Expand Down
6 changes: 5 additions & 1 deletion Sources/MultipartKit/Utilities.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import Foundation
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
import HTTPTypes

extension HTTPFields {
Expand Down
7 changes: 6 additions & 1 deletion Tests/MultipartKitTests/FormDataEncodingTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import Foundation
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif

import MultipartKit
import Testing

Expand Down

0 comments on commit eabe133

Please sign in to comment.