Skip to content

Commit 94729dd

Browse files
committed
Tweak generics in renderable directive convertible
1 parent 1a1a95e commit 94729dd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/SwiftDocC/Model/Rendering/RenderContentConvertible.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
import Foundation
1212
import Markdown
1313

14-
protocol RenderableDirectiveConvertible: AutomaticDirectiveConvertible where DirectiveType == Self {
15-
associatedtype DirectiveType
16-
14+
protocol RenderableDirectiveConvertible: AutomaticDirectiveConvertible {
1715
func render(with contentCompiler: inout RenderContentCompiler) -> [RenderContent]
1816
}
1917

@@ -22,7 +20,7 @@ extension RenderableDirectiveConvertible {
2220
_ blockDirective: BlockDirective,
2321
with contentCompiler: inout RenderContentCompiler
2422
) -> [RenderContent] {
25-
guard let directive = DirectiveType.init(
23+
guard let directive = Self.init(
2624
from: blockDirective,
2725
for: contentCompiler.bundle,
2826
in: contentCompiler.context

0 commit comments

Comments
 (0)