mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 09:50:16 +08:00
Remove redundant annotation
This commit is contained in:
parent
68ba984f08
commit
6bfd11b091
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
package net.mamoe.mirai
|
package net.mamoe.mirai
|
||||||
|
|
||||||
import io.ktor.util.KtorExperimentalAPI
|
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.io.OutputStream
|
import kotlinx.io.OutputStream
|
||||||
import kotlinx.io.core.ByteReadPacket
|
import kotlinx.io.core.ByteReadPacket
|
||||||
@ -145,7 +144,6 @@ abstract class Bot : CoroutineScope {
|
|||||||
/**
|
/**
|
||||||
* 需要调用者自行 close [output]
|
* 需要调用者自行 close [output]
|
||||||
*/
|
*/
|
||||||
@UseExperimental(KtorExperimentalAPI::class)
|
|
||||||
suspend inline fun Image.downloadTo(output: OutputStream) =
|
suspend inline fun Image.downloadTo(output: OutputStream) =
|
||||||
download().use { input -> input.transferTo(output) }
|
download().use { input -> input.transferTo(output) }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user