Skip to content

Commit 2dd9e72

Browse files
committed
Updated for Swift 5.4
1 parent e9dd733 commit 2dd9e72

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

Sources/BluetoothLinux/POSIXError.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ public extension POSIXError {
4444
}
4545

4646
internal extension POSIXErrorCode {
47+
4748
var errorMessage: String {
4849
return String(cString: strerror(rawValue), encoding: .utf8)!
4950
}
5051
}
5152

53+
#if !swift(>=5.4)
5254
// MARK: - CustomStringConvertible
5355

5456
// https://github.com/apple/swift/pull/24149
@@ -58,13 +60,6 @@ extension POSIXError: CustomStringConvertible {
5860
return _nsError.description
5961
}
6062
}
61-
62-
#if os(macOS)
63-
extension POSIXErrorCode: CustomStringConvertible {
64-
public var description: String {
65-
return rawValue.description
66-
}
67-
}
6863
#endif
6964

7065
// MARK: - LocalizedError

Sources/BluetoothLinux/Scan.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ public extension HostController {
8080
/// Otherwise, if flags is set to 0, then the results of previous inquiries may be returned,
8181
/// even if the devices aren't in range anymore.
8282
case flushCache = 0x0001
83-
84-
public static let allCases: Set<ScanOption> = [.flushCache]
8583
}
8684

8785
struct InquiryResult {

0 commit comments

Comments
 (0)