Skip to content

Commit

Permalink
Resolve warning on Swift 5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
LiYanan2004 committed Mar 8, 2024
1 parent 5054ead commit a3a1da2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Xcodes/Backend/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public struct Shell {
return AsyncThrowingStream<Progress, Error> { continuation in

Task {
var progress = Progress()
// Assume progress will not have data races, so we manually opt-out isolation checks.
nonisolated(unsafe) var progress = Progress()
progress.kind = .file
progress.fileOperationKind = .downloading

Expand Down

0 comments on commit a3a1da2

Please sign in to comment.