Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sendable conformance #146

Merged
merged 1 commit into from
Apr 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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