From 09aa2660721fd438b0e472b943b70de8fdf913b3 Mon Sep 17 00:00:00 2001 From: ogaclejapan Date: Mon, 23 Sep 2024 14:42:05 +0900 Subject: [PATCH] Tweak a suppress annotation A warning was issued regarding the `Reply` class, so the scope of the suppression annotation changes to file-wide. --- soil-query-core/src/commonMain/kotlin/soil/query/core/Reply.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/soil-query-core/src/commonMain/kotlin/soil/query/core/Reply.kt b/soil-query-core/src/commonMain/kotlin/soil/query/core/Reply.kt index a017abb..07f3663 100644 --- a/soil-query-core/src/commonMain/kotlin/soil/query/core/Reply.kt +++ b/soil-query-core/src/commonMain/kotlin/soil/query/core/Reply.kt @@ -1,6 +1,8 @@ // Copyright 2024 Soil Contributors // SPDX-License-Identifier: Apache-2.0 +@file:Suppress("NOTHING_TO_INLINE", "KotlinRedundantDiagnosticSuppress") + package soil.query.core /** @@ -13,7 +15,6 @@ sealed interface Reply { data class Some internal constructor(val value: T) : Reply companion object { - @Suppress("NOTHING_TO_INLINE") internal inline operator fun invoke(value: T): Reply = Some(value) fun none(): Reply = None