Skip to content

Commit

Permalink
Fix warning on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Mar 14, 2024
1 parent cbbff17 commit 0521483
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/VaporAPNS/APNSContainers.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import Vapor
import APNS
#if canImport(Darwin)
import Foundation
#else
// JSONEncoder / JSONDecoder is not Sendable in scf, but is in Darwin...
// Import as `@preconcurrency` to fix warnings.
@preconcurrency import Foundation
#endif
import NIO
import NIOConcurrencyHelpers

Expand Down

0 comments on commit 0521483

Please sign in to comment.