From 44f9d518cc1384f88b13d2bf472cb86718054bca Mon Sep 17 00:00:00 2001 From: Matt Gacy Date: Thu, 28 Dec 2023 07:45:56 -0700 Subject: [PATCH] Fix warnings --- Sources/Persistence/Persistence.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Persistence/Persistence.swift b/Sources/Persistence/Persistence.swift index aa20813..bb96fd6 100644 --- a/Sources/Persistence/Persistence.swift +++ b/Sources/Persistence/Persistence.swift @@ -31,7 +31,7 @@ public struct Persistence { /// Persists the given value. /// /// - Parameter contact: The value to persist. - public func put(_ value: T) async throws -> Void { + public func put(_ value: T) async throws { try await put(value.attributes) } } @@ -72,7 +72,7 @@ public extension PersistenceFactory { if let attributeProvider { inputProvider = { attributes in PutItemInput( - item: try attributes.merging(attributeProvider()) { (_, new) in new }, + item: try attributes.merging(attributeProvider()) { _, new in new }, tableName: tableName ) }