Skip to content

Commit 5af6d92

Browse files
committed
Remove additional conformances
1 parent 93565bd commit 5af6d92

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

Sources/APNSCore/LiveActivity/APNSLiveActivityNotification.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import struct Foundation.UUID
1717
/// A live activity notification.
1818
///
1919
/// It is **important** that you do not encode anything with the key `aps`.
20-
public struct APNSLiveActivityNotification<ContentState: Encodable & Hashable & Sendable>:
20+
public struct APNSLiveActivityNotification<ContentState: Encodable>:
2121
APNSMessage
2222
{
2323
enum CodingKeys: CodingKey {
@@ -49,7 +49,7 @@ public struct APNSLiveActivityNotification<ContentState: Encodable & Hashable &
4949
}
5050

5151
/// Event type e.g. update
52-
public var event: any APNSLiveActivityNotificationEvent {
52+
public var event: APNSLiveActivityNotificationEvent {
5353
get {
5454
switch self.aps.event {
5555
case "end":

Sources/APNSCore/LiveActivity/APNSLiveActivityNotificationAPSStorage.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
struct APNSLiveActivityNotificationAPSStorage<ContentState: Encodable & Hashable & Sendable>:
16-
Encodable, Sendable, Hashable
17-
{
15+
struct APNSLiveActivityNotificationAPSStorage<ContentState: Encodable>: Encodable {
1816
enum CodingKeys: String, CodingKey {
1917
case timestamp = "timestamp"
2018
case event = "event"

Sources/APNSCore/LiveActivity/APNSLiveActivityNotificationEvent.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
public protocol APNSLiveActivityNotificationEvent: Hashable, Encodable {
15+
public protocol APNSLiveActivityNotificationEvent: Encodable {
1616
var rawValue: String { get }
1717
}
1818

@@ -24,15 +24,15 @@ public struct APNSLiveActivityNotificationEventEnd: APNSLiveActivityNotification
2424
public let rawValue = "end"
2525
}
2626

27-
public protocol APNSLiveActivityNotificationEventStartStateProtocol: Encodable & Hashable & Sendable
27+
public protocol APNSLiveActivityNotificationEventStartStateProtocol: Encodable
2828
{
29-
associatedtype State: Encodable & Hashable & Sendable
29+
associatedtype State: Encodable
3030
}
3131

32-
public struct APNSLiveActivityNotificationEventStart<State: Encodable & Hashable & Sendable>:
32+
public struct APNSLiveActivityNotificationEventStart<State: Encodable>:
3333
APNSLiveActivityNotificationEvent, APNSLiveActivityNotificationEventStartStateProtocol
3434
{
35-
public struct Attributes: Encodable, Hashable, Sendable {
35+
public struct Attributes: Encodable {
3636
public let type: String
3737
public let state: State
3838

0 commit comments

Comments
 (0)