Skip to content

Commit 2474c5a

Browse files
committed
Make the viewrenderer structure sendable
1 parent 4ff2a5e commit 2474c5a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/HTMLKitVapor/Extensions/Vapor+HTMLKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extension Application {
99
}
1010

1111
/// Represents the provider for Vapor
12-
public struct HtmlKit {
12+
public struct HtmlKit: Sendable {
1313

1414
/// Manages environment settings
1515
public var environment: HTMLKit.Environment {

Sources/HTMLKitVapor/ViewRenderer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import HTMLKit
22
import Vapor
33

44
/// A type responsible for rendering views in Vapor using HTMLKit
5-
public class ViewRenderer {
5+
public struct ViewRenderer: Sendable {
66

77
/// The event loop that the renderer operates on
88
internal var eventLoop: EventLoop

0 commit comments

Comments
 (0)