diff options
| author | Christian Cleberg <[email protected]> | 2026-07-17 00:01:29 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-07-17 00:01:29 -0500 |
| commit | f112f894ac00bf7b6397287c26edc1267883612f (patch) | |
| tree | c898e0a4cf44162a68038608b099d2bdb04c35cc /DomainDig | |
| parent | 4fcf49a6443d8d921188ea29d1845da752ecd558 (diff) | |
| download | domain-dig-f112f894ac00bf7b6397287c26edc1267883612f.tar.gz domain-dig-f112f894ac00bf7b6397287c26edc1267883612f.tar.bz2 domain-dig-f112f894ac00bf7b6397287c26edc1267883612f.zip | |
Fix Swift 6 actor-isolation warning in InspectDomainIntent
The app target sets SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor, so
DomainReportBuilder and DomainInspectionService are MainActor-isolated. The
unmarked perform() ran nonisolated, so calling build(from:) triggered an
"expression is 'async' but is not marked with 'await'" warning (an error in the
Swift 6 language mode). Mark perform() @MainActor to match AddToWatchlistIntent.
Diffstat (limited to 'DomainDig')
| -rw-r--r-- | DomainDig/DomainDigIntents.swift | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/DomainDig/DomainDigIntents.swift b/DomainDig/DomainDigIntents.swift index fb2e015..44a1dc4 100644 --- a/DomainDig/DomainDigIntents.swift +++ b/DomainDig/DomainDigIntents.swift @@ -28,6 +28,7 @@ struct InspectDomainIntent: AppIntent { Summary("Inspect \(\.$domain)") } + @MainActor func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog { let requested = domain.trimmingCharacters(in: .whitespacesAndNewlines) guard !requested.isEmpty else { |
