From f2199274a8bcf6f54d9b7c53b014d610be22f98b Mon Sep 17 00:00:00 2001 From: Martijn Gerkes Date: Fri, 21 Aug 2020 16:16:14 +0100 Subject: [PATCH] RequireAttribute with MeansImplicitUse (#1462) * Add `MeansImplicitUse` to the `RequireAttribute` to reduce some warnings in Rider. * CHANGELOG.md --- CHANGELOG.md | 1 + .../io.improbable.gdk.core/Subscriptions/RequireAttribute.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68bcd9d537..544a18bf56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Upgrade to Worker SDK v14.8.0. [#1458](https://github.com/spatialos/gdk-for-unity/pull/1458) - Migrated launch configurations to latest game templates. [#1457](https://github.com/spatialos/gdk-for-unity/pull/1457) +- Added `MeansImplicitUse` attribute to `RequireAttribute` to reduce warnings in Rider IDE. [#1462](https://github.com/spatialos/gdk-for-unity/pull/1462) ## `0.3.10` - 2020-08-18 diff --git a/workers/unity/Packages/io.improbable.gdk.core/Subscriptions/RequireAttribute.cs b/workers/unity/Packages/io.improbable.gdk.core/Subscriptions/RequireAttribute.cs index 9f66c08af0..f19157bab5 100644 --- a/workers/unity/Packages/io.improbable.gdk.core/Subscriptions/RequireAttribute.cs +++ b/workers/unity/Packages/io.improbable.gdk.core/Subscriptions/RequireAttribute.cs @@ -1,8 +1,9 @@ using System; +using JetBrains.Annotations; namespace Improbable.Gdk.Subscriptions { - [AttributeUsage(AttributeTargets.Field)] + [AttributeUsage(AttributeTargets.Field), MeansImplicitUse] public class RequireAttribute : Attribute { }