Skip to content

Commit 674feb7

Browse files
authored
Fix compiler warning (#3138)
> using 'class' keyword for protocol inheritance is deprecated; use 'AnyObject' instead
1 parent b2342f1 commit 674feb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Workspace/Workspace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public enum WorkspaceResolveReason: Equatable {
3737
}
3838

3939
/// The delegate interface used by the workspace to report status information.
40-
public protocol WorkspaceDelegate: class {
40+
public protocol WorkspaceDelegate: AnyObject {
4141

4242
/// The workspace is about to load a package manifest (which might be in the cache, or might need to be parsed). Note that this does not include speculative loading of manifests that may occr during dependency resolution; rather, it includes only the final manifest loading that happens after a particular package version has been checked out into a working directory.
4343
func willLoadManifest(packagePath: AbsolutePath, url: String, version: Version?, packageKind: PackageReference.Kind)

0 commit comments

Comments
 (0)