Skip to content

Commit df0e782

Browse files
apps4everyoneStefan Fessler
andauthored
Compiler warnings (#819)
Co-authored-by: Stefan Fessler <[email protected]>
1 parent 384b464 commit df0e782

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Sources/Disposable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/// Represents something that can be “disposed”, usually associated with freeing
1010
/// resources or canceling work.
11-
public protocol Disposable: class {
11+
public protocol Disposable: AnyObject {
1212
/// Whether this disposable has been disposed already.
1313
var isDisposed: Bool { get }
1414

Sources/Property.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Glibc
1212
///
1313
/// Only classes can conform to this protocol, because having a signal
1414
/// for changes over time implies the origin must have a unique identity.
15-
public protocol PropertyProtocol: class, BindingSource {
15+
public protocol PropertyProtocol: AnyObject, BindingSource {
1616
/// The current value of the property.
1717
var value: Value { get }
1818

Sources/Scheduler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Foundation
1414
#endif
1515

1616
/// Represents a serial queue of work items.
17-
public protocol Scheduler: class {
17+
public protocol Scheduler: AnyObject {
1818
/// Enqueues an action on the scheduler.
1919
///
2020
/// When the work is executed depends on the scheduler in use.

Sources/Signal.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ extension Signal {
415415
}
416416
}
417417

418-
public protocol SignalProtocol: class {
418+
public protocol SignalProtocol: AnyObject {
419419
/// The type of values being sent by `self`.
420420
associatedtype Value
421421

@@ -1662,7 +1662,7 @@ private enum ThrottleWhileState<Value> {
16621662
}
16631663
}
16641664

1665-
private protocol SignalAggregateStrategy: class {
1665+
private protocol SignalAggregateStrategy: AnyObject {
16661666
/// Update the latest value of the signal at `position` to be `value`.
16671667
///
16681668
/// - parameters:

0 commit comments

Comments
 (0)