mirror of
https://github.com/github/semantic.git
synced 2025-01-07 07:58:12 +03:00
Patch is trivially PatchConvertible.
This commit is contained in:
parent
46f3f9431b
commit
6b3c66d801
@ -70,3 +70,8 @@ public protocol PatchConvertible {
|
|||||||
init(patch: Patch<Info>)
|
init(patch: Patch<Info>)
|
||||||
var patch: Patch<Info> { get }
|
var patch: Patch<Info> { get }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extension Patch: PatchConvertible {
|
||||||
|
public init(patch: Patch) { self = patch }
|
||||||
|
public var patch: Patch { return self }
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user