Commit f112f894ac

f112f894ac00bf7b6397287c26edc1267883612f

parent: 4fcf49a644

Verified · cmc

cmc <hello@cleberg.net> · 2026-07-17 05:01 UTC

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.

Layout: unified · split

DomainDig/DomainDigIntents.swift +1
@@ -28,6 +28,7 @@ struct InspectDomainIntent: AppIntent {
28 Summary("Inspect \(\.$domain)") 28 Summary("Inspect \(\.$domain)")
29 } 29 }
30 30
31 @MainActor
31 func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog { 32 func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog {
32 let requested = domain.trimmingCharacters(in: .whitespacesAndNewlines) 33 let requested = domain.trimmingCharacters(in: .whitespacesAndNewlines)
33 guard !requested.isEmpty else { 34 guard !requested.isEmpty else {