Skip to content

Commit

Permalink
Add Sendable conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
AvdLee committed Apr 21, 2023
1 parent 4083a87 commit cd1c684
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DiagnosticsTests/DiagnosticsReporterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ final class DiagnosticsReporterTests: XCTestCase {
}

struct MockedReport: DiagnosticsReporting {
var diagnostics: Diagnostics = [:]
var diagnostics: Diagnostics = [String: String]()
func report() -> DiagnosticsChapter {
return DiagnosticsChapter(title: UUID().uuidString, diagnostics: diagnostics)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/DiagnosticsChapter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation

/// Defines a Diagnostics Chapter which will end up in the report as HTML.
public struct DiagnosticsChapter {
public struct DiagnosticsChapter: Sendable {

/// The title of the diagnostics report which will also be used as HTML anchor.
public let title: String
Expand Down
4 changes: 2 additions & 2 deletions Sources/DiagnosticsReport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import AppKit
#endif

/// The actual diagnostics report containing the compiled data of all reporters.
public struct DiagnosticsReport {
public enum MimeType: String {
public struct DiagnosticsReport: Sendable {
public enum MimeType: String, Sendable {
case html = "text/html"
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/HTMLGenerating.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation

public typealias HTML = String

public protocol HTMLGenerating {
public protocol HTMLGenerating: Sendable {
func html() -> HTML
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Reporters/DirectoryTree/DirectoryTreeNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

/// A file system node with it's path, name and contents.
indirect enum DirectoryTreeNode {
indirect enum DirectoryTreeNode: Sendable {
/// A regular file.
case file(String, String)

Expand Down

0 comments on commit cd1c684

Please sign in to comment.