Skip to content

Commit c6256b1

Browse files
committed
formatting fix
1 parent fc48890 commit c6256b1

File tree

9 files changed

+37
-28
lines changed

9 files changed

+37
-28
lines changed

Examples/BackgroundTasks/Sources/main.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import AWSLambdaRuntime
16+
1617
#if canImport(FoundationEssentials)
1718
import FoundationEssentials
1819
#else

Sources/AWSLambdaRuntime/Vendored/ByteBuffer-foundation.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@
2626
//
2727
//===----------------------------------------------------------------------===//
2828

29+
import NIOCore
30+
2931
#if canImport(FoundationEssentials)
3032
import FoundationEssentials
3133
#else
3234
import Foundation
3335
#endif
34-
import NIOCore
3536

3637
// This is NIO's `NIOFoundationCompat` module which at the moment only adds `ByteBuffer` utility methods
3738
// for Foundation's `Data` type.

Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import Logging
16+
import NIOConcurrencyHelpers
17+
import NIOCore
18+
1519
#if canImport(FoundationEssentials)
1620
import FoundationEssentials
1721
#else
1822
import Foundation
1923
#endif
20-
import Logging
21-
import NIOConcurrencyHelpers
22-
import NIOCore
2324

2425
// We need `@unchecked` Sendable here, as `NIOLockedValueBox` does not understand `sending` today.
2526
// We don't want to use `NIOLockedValueBox` here anyway. We would love to use Mutex here, but this

Sources/MockServer/main.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import Dispatch
16+
import NIOCore
17+
import NIOHTTP1
18+
import NIOPosix
19+
1520
#if canImport(FoundationEssentials)
1621
import FoundationEssentials
1722
#else
1823
import Foundation
1924
#endif
20-
import NIOCore
21-
import NIOHTTP1
22-
import NIOPosix
23-
import Dispatch
2425

2526
struct MockServer {
2627
private let group: EventLoopGroup

Tests/AWSLambdaRuntimeCoreTests/InvocationTests.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import NIOHTTP1
16+
import Testing
17+
18+
@testable import AWSLambdaRuntimeCore
19+
1520
#if canImport(FoundationEssentials)
1621
import FoundationEssentials
1722
#else
1823
import Foundation
1924
#endif
20-
import NIOHTTP1
21-
import Testing
22-
23-
@testable import AWSLambdaRuntimeCore
2425

2526
@Suite
2627
struct InvocationTest {

Tests/AWSLambdaRuntimeCoreTests/LambdaMockClient.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import AWSLambdaRuntimeCore
16+
import Logging
17+
import NIOCore
18+
1619
#if canImport(FoundationEssentials)
1720
import FoundationEssentials
1821
#else
1922
import Foundation
2023
#endif
21-
import Logging
22-
import NIOCore
2324

2425
struct LambdaMockWriter: LambdaRuntimeClientResponseStreamWriter {
2526
var underlying: LambdaMockClient

Tests/AWSLambdaRuntimeCoreTests/LambdaRequestIDTests.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import NIOCore
16+
import Testing
17+
18+
@testable import AWSLambdaRuntimeCore
19+
1520
#if canImport(FoundationEssentials)
1621
import FoundationEssentials
1722
#else
1823
import Foundation
1924
#endif
20-
import NIOCore
21-
import Testing
22-
23-
@testable import AWSLambdaRuntimeCore
2425

2526
@Suite("LambdaRequestID tests")
2627
struct LambdaRequestIDTest {

Tests/AWSLambdaRuntimeCoreTests/LambdaRunLoopTests.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
#if canImport(FoundationEssentials)
16-
import FoundationEssentials
17-
#else
18-
import Foundation
19-
#endif
2015
import Logging
2116
import NIOCore
2217
import Testing
2318

2419
@testable import AWSLambdaRuntimeCore
2520

21+
#if canImport(FoundationEssentials)
22+
import FoundationEssentials
23+
#else
24+
import Foundation
25+
#endif
26+
2627
@Suite
2728
struct LambdaRunLoopTests {
2829
struct MockEchoHandler: StreamingLambdaHandler {

Tests/AWSLambdaRuntimeCoreTests/MockLambdaServer.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
#if canImport(FoundationEssentials)
16-
import FoundationEssentials
17-
#else
18-
import Foundation
19-
#endif
2015
import Logging
2116
import NIOCore
2217
import NIOHTTP1
2318
import NIOPosix
2419

2520
@testable import AWSLambdaRuntimeCore
2621

22+
#if canImport(FoundationEssentials)
23+
import FoundationEssentials
24+
#else
25+
import Foundation
26+
#endif
27+
2728
func withMockServer<Result>(
2829
behaviour: some LambdaServerBehavior,
2930
port: Int = 0,

0 commit comments

Comments
 (0)