Skip to content

Commit

Permalink
Properly mark ModuleOwnership as Sendable (#109)
Browse files Browse the repository at this point in the history
# Properly mark ModuleOwnership as Sendable

## ♻️ Current situation & Problem
This PR adds a missing and forgotten Sendable conformance.


## ⚙️ Release Notes 
* Sendable and Hashable conformance for ModuleOwnership.


## 📚 Documentation
-


## ✅ Testing
-


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
Supereg authored Jul 16, 2024
1 parent fffb691 commit afdf500
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/StanfordSpezi/SpeziFoundation", from: "1.0.2"),
.package(url: "https://github.com/StanfordBDHG/XCTRuntimeAssertions", from: "1.0.1"),
.package(url: "https://github.com/StanfordBDHG/XCTRuntimeAssertions", from: "1.1.1"),
.package(url: "https://github.com/apple/swift-collections.git", from: "1.1.1")
] + swiftLintPackage(),
targets: [
Expand Down
3 changes: 3 additions & 0 deletions Sources/Spezi/Module/ModuleOwnership.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ public enum ModuleOwnership {
/// The module is managed and strongly referenced by Spezi.
case spezi
}


extension ModuleOwnership: Sendable, Hashable {}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class StandardUnfulfilledConstraintTests: XCTestCase {
}
}


@MainActor
func testStandardUnfulfilledConstraint() throws {
let standardCUTestApplicationDelegate = StandardUCTestApplicationDelegate()
Expand Down

0 comments on commit afdf500

Please sign in to comment.