From 8f042e554b717a13ee837273c95ee43a2fc30b92 Mon Sep 17 00:00:00 2001 From: Devyn Cairns Date: Sun, 10 Mar 2024 01:07:40 +0000 Subject: [PATCH] make compatible with plugin trait changes --- src/main.rs | 10 ++++++---- 1 file(s) changed, 6 insertion(s)(+), 4 deletion(s)(-) diff --git a/src/main.rs b/src/main.rs --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,6 @@ -use nu_plugin::{serve_plugin, EvaluatedCall, LabeledError, MsgPackSerializer, Plugin}; +use nu_plugin::{ + serve_plugin, EngineInterface, EvaluatedCall, LabeledError, MsgPackSerializer, Plugin, +}; use nu_protocol::{PluginExample, PluginSignature, Span, SyntaxShape, Type, Value}; mod client; @@ -14,7 +16,7 @@ use crate::pattern::Pattern; fn main() { - serve_plugin(&mut NuPluginDbus, MsgPackSerializer) + serve_plugin(&NuPluginDbus, MsgPackSerializer) } /// The main plugin interface for nushell @@ -236,9 +238,9 @@ ] } fn run( - &mut self, + &self, name: &str, - _config: &Option, + _engine: &EngineInterface, call: &EvaluatedCall, _input: &Value, ) -> Result { -- tangled.sh