Skip to content

Commit

Permalink
dont use noncopyable in swift < 6
Browse files Browse the repository at this point in the history
  • Loading branch information
kattouf committed Jan 10, 2025
1 parent 4a32722 commit cde3da7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/SakeCLI/SakeAppManager/SakeAppManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ import SakeShared
enum SakeAppManagerUnitializedMode {}
enum SakeAppManagerInitializedMode {}

#if swift(>=6.0)
struct SakeAppManager<Mode>: ~Copyable {
let fileHandle: SakeAppManagerFileHandle
let commandExecutor: SakeAppManagerCommandExecutor
}
#else
struct SakeAppManager<Mode> {
let fileHandle: SakeAppManagerFileHandle
let commandExecutor: SakeAppManagerCommandExecutor
}
#endif

extension SakeAppManager {
static func makeDefault(sakeAppPath: String) -> Self {
Expand Down

0 comments on commit cde3da7

Please sign in to comment.