Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 6 CI plus warning fixes #731

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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