From 9fec51977e0805bd649804427ebcea915b9a66ee Mon Sep 17 00:00:00 2001 From: Him188 Date: Tue, 8 Sep 2020 21:41:32 +0800 Subject: [PATCH] Remove the serializer of PluginKind --- .../net/mamoe/mirai/console/plugin/description/PluginKind.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugin/description/PluginKind.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugin/description/PluginKind.kt index e7f6b0003..fce47b97b 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugin/description/PluginKind.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugin/description/PluginKind.kt @@ -10,7 +10,6 @@ package net.mamoe.mirai.console.plugin.description import kotlinx.serialization.KSerializer -import kotlinx.serialization.Serializable import kotlinx.serialization.builtins.serializer import net.mamoe.mirai.console.extension.Extension import net.mamoe.mirai.console.extensions.BotConfigurationAlterer @@ -26,7 +25,6 @@ import net.mamoe.mirai.console.plugin.description.PluginKind.* * * 依赖解决过程与插件类型有很大关联. 在一个较早的阶段, 只会解决在此阶段加载的插件. 意味着 [LOADER] 不允许依赖一个 [NORMAL] 类型的插件. */ -@Serializable(with = PluginKind.AsStringSerializer::class) public enum class PluginKind { /** 表示此插件提供一个 [PluginLoader], 也可以同时提供其他 [Extension] 应最早被加载 */ LOADER,