From 9a5e127387ca371d9dbcfb61a87556062dd39800 Mon Sep 17 00:00:00 2001 From: LiYanan2004 <37542129+LiYanan2004@users.noreply.github.com> Date: Fri, 8 Mar 2024 12:41:01 +0800 Subject: [PATCH] Resolve warning on Swift 5.10 --- Xcodes/Backend/Environment.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Xcodes/Backend/Environment.swift b/Xcodes/Backend/Environment.swift index 84709134..e75a8750 100644 --- a/Xcodes/Backend/Environment.swift +++ b/Xcodes/Backend/Environment.swift @@ -116,7 +116,8 @@ public struct Shell { return AsyncThrowingStream { 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