Skip to content

Commit 624ea75

Browse files
authored
Merge pull request #176 from neonichu/fix-warning
Fix compiler warning
2 parents 2e1e553 + 2d4817c commit 624ea75

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/TSCBasic/ObjectIdentifierProtocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/// A protocol which implements Hashable protocol using ObjectIdentifier.
1212
///
1313
/// Classes can conform to this protocol to auto-conform to Hashable and Equatable.
14-
public protocol ObjectIdentifierProtocol: class, Hashable {}
14+
public protocol ObjectIdentifierProtocol: AnyObject, Hashable {}
1515

1616
extension ObjectIdentifierProtocol {
1717
public func hash(into hasher: inout Hasher) {

Sources/TSCUtility/JSONMessageStreamingParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Foundation
1212
import TSCBasic
1313

1414
/// Protocol for the parser delegate to get notified of parsing events.
15-
public protocol JSONMessageStreamingParserDelegate: class {
15+
public protocol JSONMessageStreamingParserDelegate: AnyObject {
1616

1717
/// A decodable type representing the JSON messages being parsed.
1818
associatedtype Message: Decodable

Sources/TSCUtility/SimplePersistence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import TSCBasic
1212

1313
/// A protocol which needs to be implemented by the objects which can be
1414
/// persisted using SimplePersistence
15-
public protocol SimplePersistanceProtocol: class, JSONSerializable {
15+
public protocol SimplePersistanceProtocol: AnyObject, JSONSerializable {
1616
/// Restores state from the given json object.
1717
func restore(from json: JSON) throws
1818

0 commit comments

Comments
 (0)