Skip to content

Commit ad43590

Browse files
committed
Update deprecation annotations to support "fixit" helpers in Xcode
1 parent b277715 commit ad43590

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/RediStack/_Deprecations.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the RediStack open source project
44
//
5-
// Copyright (c) 2020 RediStack project authors
5+
// Copyright (c) 2020-2022 RediStack project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
@@ -19,7 +19,7 @@ extension RedisConnection {
1919
/// The documented default port that Redis connects through.
2020
///
2121
/// See [https://redis.io/topics/quickstart](https://redis.io/topics/quickstart)
22-
@available(*, deprecated, message: "Use RedisConnection.Configuration.defaultPort")
22+
@available(*, deprecated, renamed: "RedisConnection.Configuration.defaultPort")
2323
public static var defaultPort: Int { Configuration.defaultPort }
2424

2525
/// Creates a new connection to a Redis instance.
@@ -132,10 +132,10 @@ extension RedisConnectionPool {
132132
}
133133

134134
// MARK: - RedisKeyLifetime
135-
@available(*, deprecated, message: "renamed to RedisKey.Lifetime")
135+
@available(*, deprecated, renamed: "RedisKey.Lifetime")
136136
public typealias RedisKeyLifetime = RedisKey.Lifetime
137137

138138
extension RedisKey.Lifetime {
139-
@available(*, deprecated, message: "renamed to Duration")
139+
@available(*, deprecated, renamed: "Duration")
140140
public typealias Lifetime = Duration
141141
}

0 commit comments

Comments
 (0)