From ad435902f2d3a1e04f76dde43c60ead332c2eb45 Mon Sep 17 00:00:00 2001 From: Nathan Harris Date: Sat, 23 Apr 2022 22:43:49 -0500 Subject: [PATCH] Update deprecation annotations to support "fixit" helpers in Xcode --- Sources/RediStack/_Deprecations.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/RediStack/_Deprecations.swift b/Sources/RediStack/_Deprecations.swift index da3e33b..27109bc 100644 --- a/Sources/RediStack/_Deprecations.swift +++ b/Sources/RediStack/_Deprecations.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020-2022 RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -19,7 +19,7 @@ extension RedisConnection { /// The documented default port that Redis connects through. /// /// See [https://redis.io/topics/quickstart](https://redis.io/topics/quickstart) - @available(*, deprecated, message: "Use RedisConnection.Configuration.defaultPort") + @available(*, deprecated, renamed: "RedisConnection.Configuration.defaultPort") public static var defaultPort: Int { Configuration.defaultPort } /// Creates a new connection to a Redis instance. @@ -132,10 +132,10 @@ extension RedisConnectionPool { } // MARK: - RedisKeyLifetime -@available(*, deprecated, message: "renamed to RedisKey.Lifetime") +@available(*, deprecated, renamed: "RedisKey.Lifetime") public typealias RedisKeyLifetime = RedisKey.Lifetime extension RedisKey.Lifetime { - @available(*, deprecated, message: "renamed to Duration") + @available(*, deprecated, renamed: "Duration") public typealias Lifetime = Duration }