Skip to content

Commit aa167ad

Browse files
fix: keep file information reads compatible with Swift 6.1
1 parent a01b5bb commit aa167ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎App/FileMint/FileInfoController.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ final class FileInfoController: NSObject, ObservableObject, NSWindowDelegate {
172172
}
173173

174174
private func withReadAccess<T>(to selection: FileInfoSelection, cancellation: FileDigestCancellation,
175-
perform: () async throws -> T) async throws -> T {
175+
perform: @MainActor () async throws -> T) async throws -> T {
176176
try validatePolicy(selection)
177177
readAccess.restore(for: selection, preferences: preferences)
178178
do { return try await perform() }

0 commit comments

Comments
 (0)