Skip to content

Commit b250d05

Browse files
committed
bump nushell version to 0.91.0
1 parent e7d420d commit b250d05

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nu_plugin_dbus"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
edition = "2021"
55

66
description = "Nushell plugin for communicating with D-Bus"
@@ -14,7 +14,7 @@ repository = "https://github.com/devyn/nu_plugin_dbus"
1414

1515
[dependencies]
1616
dbus = "0.9.7"
17-
nu-plugin = "0.90.1"
18-
nu-protocol = { version = "0.90.1", features = ["plugin"] }
17+
nu-plugin = "0.91.0"
18+
nu-protocol = { version = "0.91.0", features = ["plugin"] }
1919
serde = { version = "1.0.196", features = ["derive"] }
2020
serde-xml-rs = "0.6.0"

src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ impl TryFrom<&EvaluatedCall> for DbusClientConfig {
5858
},
5959
r#type @ ("bus" | "peer") => {
6060
if let Some(value) = value {
61-
let address = value.as_string()?;
61+
let address = value.as_str()?;
6262
let dest = match r#type {
63-
"bus" => DbusBusChoice::Bus(address),
64-
"peer" => DbusBusChoice::Peer(address),
63+
"bus" => DbusBusChoice::Bus(address.to_owned()),
64+
"peer" => DbusBusChoice::Peer(address.to_owned()),
6565
_ => unreachable!()
6666
};
6767
config.bus_choice = Spanned { item: dest, span: value.span() };

0 commit comments

Comments
 (0)