Skip to content

Commit 35f9f3a

Browse files
authored
Merge pull request #177 from compnerd/anyobject
TSCBasic: `class` to `AnyObject` conformance
2 parents 624ea75 + b7f38da commit 35f9f3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/TSCBasic/FileSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public enum FileMode {
133133
/// substitute a virtual file system or redirect file system operations.
134134
///
135135
/// - Note: All of these APIs are synchronous and can block.
136-
public protocol FileSystem: class {
136+
public protocol FileSystem: AnyObject {
137137
/// Check whether the given path exists and is accessible.
138138
func exists(_ path: AbsolutePath, followSymlink: Bool) -> Bool
139139

Sources/TSCBasic/WritableByteStream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public protocol ByteStreamable {
4343
///
4444
/// would write each item in the list to the stream, separating them with a
4545
/// space.
46-
public protocol WritableByteStream: class, TextOutputStream, Closable {
46+
public protocol WritableByteStream: AnyObject, TextOutputStream, Closable {
4747
/// The current offset within the output stream.
4848
var position: Int { get }
4949

0 commit comments

Comments
 (0)