Resolve warning on Swift 5.10

This commit is contained in:
LiYanan2004 2024-03-08 12:41:01 +08:00
parent 91f75843da
commit 9a5e127387

View file

@ -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