Skip to content

Commit

Permalink
fix Swift 5.9 features
Browse files Browse the repository at this point in the history
  • Loading branch information
NikSativa committed Sep 18, 2024
1 parent 4d2e73b commit 6656208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Spy/SpyableImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
/// A global NSMapTable to hold onto calls for types conforming to Spyable. This map table has "weak to strong objects" options.
///
/// - Important: Do NOT use this object.
#if swift(>=5.9)
#if swift(>=6.0)
private nonisolated(unsafe) var callsMapTable: NSMapTable<AnyObject, SpryDictionary<RecordedCall>> = NSMapTable.weakToStrongObjects()
#else
private var callsMapTable: NSMapTable<AnyObject, SpryDictionary<RecordedCall>> = NSMapTable.weakToStrongObjects()
Expand Down
2 changes: 1 addition & 1 deletion Source/Stub/StubbableImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
/// A global NSMapTable to hold onto stubs for types conforming to Stubbable. This map table has "weak to strong objects" options.
///
/// - Important: Do NOT use this object.
#if swift(>=5.9)
#if swift(>=6.0)
private nonisolated(unsafe) var stubsMapTable: NSMapTable<AnyObject, SpryDictionary<StubInfo>> = NSMapTable.weakToStrongObjects()
#else
private var stubsMapTable: NSMapTable<AnyObject, SpryDictionary<StubInfo>> = NSMapTable.weakToStrongObjects()
Expand Down

0 comments on commit 6656208

Please sign in to comment.