From 83781b7cda31a00afec9a1655792312bf62f6e7e Mon Sep 17 00:00:00 2001 From: Him188 <Him188@mamoe.net> Date: Sun, 27 Dec 2020 15:08:24 +0800 Subject: [PATCH] Remove unnecessary UnsafeVariance on Bot.eventChannel --- mirai-core-api/src/commonMain/kotlin/Bot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core-api/src/commonMain/kotlin/Bot.kt b/mirai-core-api/src/commonMain/kotlin/Bot.kt index 7a9ac51a2..fa7361280 100644 --- a/mirai-core-api/src/commonMain/kotlin/Bot.kt +++ b/mirai-core-api/src/commonMain/kotlin/Bot.kt @@ -80,7 +80,7 @@ public interface Bot : CoroutineScope, ContactOrBot, UserOrBot { * 来自这个 [Bot] 的 [BotEvent] 的事件通道. * @see EventChannel */ - public val eventChannel: EventChannel<@UnsafeVariance BotEvent> + public val eventChannel: EventChannel<BotEvent> // region contacts