From 6bfd11b091b4960f0cb1408714d8585b886d21b2 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 17 Jan 2020 16:17:22 +0800 Subject: [PATCH] Remove redundant annotation --- mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt index df3f87b19..27d55cf58 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt @@ -2,7 +2,6 @@ package net.mamoe.mirai -import io.ktor.util.KtorExperimentalAPI import kotlinx.coroutines.CoroutineScope import kotlinx.io.OutputStream import kotlinx.io.core.ByteReadPacket @@ -145,7 +144,6 @@ abstract class Bot : CoroutineScope { /** * 需要调用者自行 close [output] */ - @UseExperimental(KtorExperimentalAPI::class) suspend inline fun Image.downloadTo(output: OutputStream) = download().use { input -> input.transferTo(output) }