Nushell plugin for interacting with D-Bus

bump nushell version to 0.91.0

+6 -6
+3 -3
Cargo.toml
··· 1 1 [package] 2 2 name = "nu_plugin_dbus" 3 - version = "0.3.0" 3 + version = "0.4.0" 4 4 edition = "2021" 5 5 6 6 description = "Nushell plugin for communicating with D-Bus" ··· 14 14 15 15 [dependencies] 16 16 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"] } 19 19 serde = { version = "1.0.196", features = ["derive"] } 20 20 serde-xml-rs = "0.6.0"
+3 -3
src/config.rs
··· 58 58 }, 59 59 r#type @ ("bus" | "peer") => { 60 60 if let Some(value) = value { 61 - let address = value.as_string()?; 61 + let address = value.as_str()?; 62 62 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()), 65 65 _ => unreachable!() 66 66 }; 67 67 config.bus_choice = Spanned { item: dest, span: value.span() };