Skip to content

Commit 8f042e5

Browse files
committed
make compatible with plugin trait changes
1 parent 4a6eeab commit 8f042e5

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/main.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use nu_plugin::{serve_plugin, EvaluatedCall, LabeledError, MsgPackSerializer, Plugin};
1+
use nu_plugin::{
2+
serve_plugin, EngineInterface, EvaluatedCall, LabeledError, MsgPackSerializer, Plugin,
3+
};
24
use nu_protocol::{PluginExample, PluginSignature, Span, SyntaxShape, Type, Value};
35

46
mod client;
@@ -14,7 +16,7 @@ use config::*;
1416
use crate::pattern::Pattern;
1517

1618
fn main() {
17-
serve_plugin(&mut NuPluginDbus, MsgPackSerializer)
19+
serve_plugin(&NuPluginDbus, MsgPackSerializer)
1820
}
1921

2022
/// The main plugin interface for nushell
@@ -236,9 +238,9 @@ impl Plugin for NuPluginDbus {
236238
}
237239

238240
fn run(
239-
&mut self,
241+
&self,
240242
name: &str,
241-
_config: &Option<Value>,
243+
_engine: &EngineInterface,
242244
call: &EvaluatedCall,
243245
_input: &Value,
244246
) -> Result<Value, LabeledError> {

0 commit comments

Comments
 (0)