diff --git a/crates/nu-plugin/src/serializers/mod.rs b/crates/nu-plugin/src/serializers/mod.rs index bbfd152fb7cb..e2721ea90a9d 100644 --- a/crates/nu-plugin/src/serializers/mod.rs +++ b/crates/nu-plugin/src/serializers/mod.rs @@ -1,4 +1,4 @@ -use crate::plugin::{Encoder, PluginEncoder}; +use crate::plugin::Encoder; use nu_protocol::ShellError; pub mod json; @@ -22,19 +22,6 @@ impl EncodingType { _ => None, } } - - pub fn to_str(&self) -> &'static str { - match self { - Self::Json(_) => "json", - Self::MsgPack(_) => "msgpack", - } - } -} - -impl PluginEncoder for EncodingType { - fn name(&self) -> &str { - self.to_str() - } } impl Encoder for EncodingType