File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " nu_plugin_dbus"
3- version = " 0.3 .0"
3+ version = " 0.4 .0"
44edition = " 2021"
55
66description = " Nushell plugin for communicating with D-Bus"
@@ -14,7 +14,7 @@ repository = "https://github.com/devyn/nu_plugin_dbus"
1414
1515[dependencies ]
1616dbus = " 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" ] }
1919serde = { version = " 1.0.196" , features = [" derive" ] }
2020serde-xml-rs = " 0.6.0"
Original file line number Diff line number Diff 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 ( ) } ;
You can’t perform that action at this time.
0 commit comments