Skip to content

Commit 5749215

Browse files
committed
Replace usage of @_specialize with @inlinable
Motivation: - Newer compilers warn that "'exported: true' has no effect in '_specialize' attribute" - Specialize is underscored so (probably) shouldn't be relied upon outside of the stdlib Modifications: - Replace @_specialize with @inlinable Result: Fewer warnings on more recent compilers
1 parent 5dbd716 commit 5749215

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Sources/RediStack/RESP/RESPValue.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ public enum RESPValue {
3737
/// Stores the representation determined by the `RESPValueConvertible` value.
3838
/// - Important: If you are sending this value to a Redis server, the type should be convertible to a `.bulkString`.
3939
/// - Parameter value: The value that needs to be converted and stored in `RESPValue` format.
40-
@_specialize(exported: true, where Value == RedisKey)
41-
@_specialize(exported: true, where Value == String)
42-
@_specialize(exported: true, where Value == Double)
43-
@_specialize(exported: true, where Value == UInt)
44-
@_specialize(exported: true, where Value == Int)
40+
@inlinable
4541
public init<Value: RESPValueConvertible>(from value: Value) {
4642
self = value.convertedToRESPValue()
4743
}

0 commit comments

Comments
 (0)