Skip to content

Commit

Permalink
chore: Require Swift 5.7, fix deprecation warnings (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins authored Oct 11, 2023
1 parent a98f4d5 commit 81a5043
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.5
// swift-tools-version:5.7

import PackageDescription

Expand All @@ -13,9 +13,9 @@ let package = Package(
.library(name: "SmithyTestUtil", targets: ["SmithyTestUtil"])
],
dependencies: [
.package(url: "https://github.com/awslabs/aws-crt-swift.git", .exact("0.13.0")),
.package(url: "https://github.com/awslabs/aws-crt-swift.git", exact: "0.13.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/MaxDesiatov/XMLCoder.git", .exact("0.17.0"))
.package(url: "https://github.com/MaxDesiatov/XMLCoder.git", exact: "0.17.0")
],
targets: [
.target(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ final actor RetryQuota {

/// Creates a new quota with settings from the passed options.
/// - Parameter options: The retry strategy options from which to configure this retry quota
convenience init(options: RetryStrategyOptions) {
init(options: RetryStrategyOptions) {
self.init(
availableCapacity: options.availableCapacity,
maxCapacity: options.maxCapacity,
Expand Down
14 changes: 0 additions & 14 deletions Sources/ClientRuntime/Util/SwiftVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,6 @@ private func swift5Version() -> String? {
return "5.8"
#elseif swift(>=5.7)
return "5.7"
#elseif swift(>=5.6)
return "5.6"
#elseif swift(>=5.5)
return "5.5"
#elseif swift(>=5.4)
return "5.4"
#elseif swift(>=5.3)
return "5.3"
#elseif swift(>=5.2)
return "5.2"
#elseif swift(>=5.1)
return "5.1"
#elseif swift(>=5.0)
return "5.0"
#else
return nil
#endif
Expand Down

0 comments on commit 81a5043

Please sign in to comment.