From b250d052a4e2112a78f5701220e786d2e3d6e704 Mon Sep 17 00:00:00 2001 From: Devyn Cairns Date: Tue, 5 Mar 2024 15:17:39 -0800 Subject: [PATCH] bump nushell version to 0.91.0 --- Cargo.toml | 6 +++--- src/config.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4083e56..732461d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nu_plugin_dbus" -version = "0.3.0" +version = "0.4.0" edition = "2021" description = "Nushell plugin for communicating with D-Bus" @@ -14,7 +14,7 @@ repository = "https://github.com/devyn/nu_plugin_dbus" [dependencies] dbus = "0.9.7" -nu-plugin = "0.90.1" -nu-protocol = { version = "0.90.1", features = ["plugin"] } +nu-plugin = "0.91.0" +nu-protocol = { version = "0.91.0", features = ["plugin"] } serde = { version = "1.0.196", features = ["derive"] } serde-xml-rs = "0.6.0" diff --git a/src/config.rs b/src/config.rs index 3fe75c4..f48dbb1 100644 --- a/src/config.rs +++ b/src/config.rs @@ -58,10 +58,10 @@ impl TryFrom<&EvaluatedCall> for DbusClientConfig { }, r#type @ ("bus" | "peer") => { if let Some(value) = value { - let address = value.as_string()?; + let address = value.as_str()?; let dest = match r#type { - "bus" => DbusBusChoice::Bus(address), - "peer" => DbusBusChoice::Peer(address), + "bus" => DbusBusChoice::Bus(address.to_owned()), + "peer" => DbusBusChoice::Peer(address.to_owned()), _ => unreachable!() }; config.bus_choice = Spanned { item: dest, span: value.span() }; -- 2.51.2