File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,22 @@ public var _useLegacyIdentities: Bool = true {
23
23
}
24
24
}
25
25
26
- internal protocol PackageIdentityProvider : LosslessStringConvertible {
26
+ internal protocol PackageIdentityProvider : CustomStringConvertible {
27
27
init ( _ string: String )
28
28
}
29
29
30
30
/// The canonical identifier for a package, based on its source location.
31
- public struct PackageIdentity : LosslessStringConvertible , Hashable {
31
+ public struct PackageIdentity : Hashable , CustomStringConvertible {
32
32
internal static var provider : PackageIdentityProvider . Type = LegacyPackageIdentity . self
33
33
34
34
/// A textual representation of this instance.
35
35
public let description : String
36
36
37
- /// Instantiates an instance of the conforming type from a string representation.
38
- public init ( _ string: String ) {
39
- self . description = Self . provider. init ( string) . description
37
+
38
+ /// Creates a package identity from a URL.
39
+ /// - Parameter url: The package's URL.
40
+ public init ( _ url: String ) {
41
+ self . description = Self . provider. init ( url) . description
40
42
}
41
43
}
42
44
You can’t perform that action at this time.
0 commit comments