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

Fix sendable warnings. #117

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Fix sendable warnings. #117

merged 1 commit into from
Apr 17, 2024

Conversation

mbrandonw
Copy link
Member

We've got just one tiny sendable warning in this library so fixing it.

Comment on lines +28 to +30
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is a safe thing to include in SPM now (as opposed to the unsafe flags), but it does require Swift 5.9 so I had to dupe the Package.swift file.

@@ -753,7 +753,7 @@ public func diff<T>(_ lhs: T, _ rhs: T, format: DiffFormat = .default) -> String
///
/// This type comes with two pre-configured formats that you will probably want to use for most
/// situations: ``DiffFormat/default`` and ``DiffFormat/proportional``.
public struct DiffFormat {
public struct DiffFormat: Sendable {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed because of the static lets down below.

@mbrandonw mbrandonw merged commit a918a38 into main Apr 17, 2024
6 checks passed
@mbrandonw mbrandonw deleted the fix-sendable-warnings branch April 17, 2024 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants