1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 13:02:37 +03:00

Patch is trivially PatchConvertible.

This commit is contained in:
Rob Rix 2015-10-06 21:24:43 -04:00
parent 46f3f9431b
commit 6b3c66d801

View File

@ -70,3 +70,8 @@ public protocol PatchConvertible {
init(patch: Patch<Info>)
var patch: Patch<Info> { get }
}
extension Patch: PatchConvertible {
public init(patch: Patch) { self = patch }
public var patch: Patch { return self }
}