summaryrefslogtreecommitdiff
path: root/Hutch/Models/Paste.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-08-07 17:41:00 -0500
committerGitHub <[email protected]>2026-08-07 17:41:00 -0500
commitff200d21e93d6683f779fe1f3280ac8d8561d393 (patch)
treef6603518ba62134faa699d864003b90464930ab9 /Hutch/Models/Paste.swift
parent9d85bc7c154843693913bf0cc67c6e9ff0d8f897 (diff)
parent283fbf00fdffd64c924b6cb22c84e803b718f078 (diff)
downloadhutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.tar.gz
hutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.tar.bz2
hutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.zip
Merge pull request #39 from krazywarez/fix-actor-isolationHEADmain
Adopt Swift 6 language mode
Diffstat (limited to 'Hutch/Models/Paste.swift')
-rw-r--r--Hutch/Models/Paste.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/Hutch/Models/Paste.swift b/Hutch/Models/Paste.swift
index b4c8f18..a8bf926 100644
--- a/Hutch/Models/Paste.swift
+++ b/Hutch/Models/Paste.swift
@@ -1,6 +1,6 @@
import Foundation
-struct PasteFile: Codable, Sendable, Hashable, Identifiable {
+nonisolated struct PasteFile: Codable, Sendable, Hashable, Identifiable {
let filename: String?
let hash: String
let contents: URL?
@@ -8,7 +8,7 @@ struct PasteFile: Codable, Sendable, Hashable, Identifiable {
var id: String { hash }
}
-struct Paste: Codable, Sendable, Identifiable, Hashable {
+nonisolated struct Paste: Codable, Sendable, Identifiable, Hashable {
let id: String
let created: Date
let visibility: Visibility
@@ -16,7 +16,7 @@ struct Paste: Codable, Sendable, Identifiable, Hashable {
let user: Entity
}
-struct PasteUploadDraft: Identifiable, Equatable, Sendable {
+nonisolated struct PasteUploadDraft: Identifiable, Equatable, Sendable {
let id: UUID
var filename: String
var contents: String