Skip to content

Commit

Permalink
make compatible with plugin trait changes
Browse files Browse the repository at this point in the history
  • Loading branch information
devyn committed Apr 3, 2024
1 parent 4a6eeab commit 8f042e5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -14,7 +16,7 @@ use config::*;
use crate::pattern::Pattern;

fn main() {
serve_plugin(&mut NuPluginDbus, MsgPackSerializer)
serve_plugin(&NuPluginDbus, MsgPackSerializer)
}

/// The main plugin interface for nushell
Expand Down Expand Up @@ -236,9 +238,9 @@ impl Plugin for NuPluginDbus {
}

fn run(
&mut self,
&self,
name: &str,
_config: &Option<Value>,
_engine: &EngineInterface,
call: &EvaluatedCall,
_input: &Value,
) -> Result<Value, LabeledError> {
Expand Down

0 comments on commit 8f042e5

Please sign in to comment.