Fix build of nu-protocol without plugin feature enabled (#12323)

# Description

I broke this, I think in #12279, because I forgot a `#[cfg(plugin)]`
This commit is contained in:
Devyn Cairns 2024-03-28 14:39:57 -07:00 committed by GitHub
parent 04531357b4
commit 3857e368ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,7 @@ pub struct PluginExample {
pub result: Option<Value>, pub result: Option<Value>,
} }
#[cfg(feature = "plugin")]
impl From<Example<'_>> for PluginExample { impl From<Example<'_>> for PluginExample {
fn from(value: Example) -> Self { fn from(value: Example) -> Self {
PluginExample { PluginExample {