Skip to content

Commit

Permalink
Swift 6 CI plus warning fixes (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Sep 19, 2024
1 parent 989fbb1 commit a3c9031
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api-breakage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
linux:
runs-on: ubuntu-latest
container:
image: swift:5.10
image: swift:latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
strategy:
matrix:
image:
- swift:5.8
- swift:5.9
- swift:5.10
- swift:6.0
services:
localstack:
image: localstack/localstack
Expand Down
34 changes: 17 additions & 17 deletions Sources/Soto/Extensions/DynamoDB/DynamoDBEncoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -382,73 +382,73 @@ class _DynamoDBEncoder: Encoder {
}

extension _DynamoDBEncoder: SingleValueEncodingContainer {
func encode(_ attribute: DynamoDB.AttributeValue) {
func encode(attribute: DynamoDB.AttributeValue) {
self.storage.pushSingleValueContainer(attribute)
}

func encodeNil() throws {
self.encode(.null(true))
self.encode(attribute: .null(true))
}

func encode(_ value: Bool) throws {
self.encode(.bool(value))
self.encode(attribute: .bool(value))
}

func encode(_ value: String) throws {
self.encode(.s(value))
self.encode(attribute: .s(value))
}

func encode(_ value: Double) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: Float) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: Int) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: Int8) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: Int16) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: Int32) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: Int64) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: UInt) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: UInt8) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: UInt16) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: UInt32) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: UInt64) throws {
self.encode(.n(value.description))
self.encode(attribute: .n(value.description))
}

func encode(_ value: some Encodable) throws {
let attribute = try box(value)
self.encode(attribute)
self.encode(attribute: attribute)
}
}

Expand Down

0 comments on commit a3c9031

Please sign in to comment.