Skip to content

Commit

Permalink
fix for Swift 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Hongyan Jiang authored and GitHub Enterprise committed Jan 10, 2025
1 parent c3872ac commit 9985964
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Foundation
import ImageTracker
#endif

class SymbolicationOperation: Operation {
class SymbolicationOperation: Operation, @unchecked Sendable {
weak var metricMonitor: MetricMonitor?

init(metricMonitor: MetricMonitor?) {
Expand Down
6 changes: 3 additions & 3 deletions Sources/InstanaAgent/Utils/PropertyWrapper/Atomic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class AtomicDictionary<Key: Hashable, Value>: CustomDebugStringConvertible {
}

extension AtomicDictionary: Equatable where Value: Equatable {
static func == <Key: Hashable, Value: Equatable>(lhs: AtomicDictionary<Key, Value>, rhs: AtomicDictionary<Key, Value>) -> Bool {
static func == (lhs: AtomicDictionary<Key, Value>, rhs: AtomicDictionary<Key, Value>) -> Bool {
lhs.dict == rhs.dict
}
}
Expand Down Expand Up @@ -116,7 +116,7 @@ extension AtomicArray: Equatable where T: Equatable {
lock.atomic { array.contains(element) }
}

static func == <T: Equatable>(lhs: AtomicArray<T>, rhs: AtomicArray<T>) -> Bool {
static func == (lhs: AtomicArray<T>, rhs: AtomicArray<T>) -> Bool {
lhs.array == rhs.array
}
}
Expand Down Expand Up @@ -171,7 +171,7 @@ class AtomicSet<T: Hashable>: CustomDebugStringConvertible, Sequence {
}

extension AtomicSet: Equatable {
static func == <T>(lhs: AtomicSet<T>, rhs: AtomicSet<T>) -> Bool {
static func == (lhs: AtomicSet<T>, rhs: AtomicSet<T>) -> Bool {
lhs.set == rhs.set
}
}

0 comments on commit 9985964

Please sign in to comment.