dbus2 / zbus-old

Rust D-Bus crate.
https://gitlab.freedesktop.org/dbus/zbus
Other
49 stars 13 forks source link

zbus-xmlgen doesn't handle rust keywords correctly. #219

Closed zeenix closed 1 year ago

zeenix commented 2 years ago

In GitLab by @jljatone on Sep 28, 2021, 23:41

caused by a property named 'type'

zbus-xmlgen --system org.freedesktop.login1 /org/freedesktop/login1/session/self
error: expected identifier, found keyword `type`
   --> <stdin>:175:8
    |
175 |     fn type(&self) -> zbus::Result<String>;
    |        ^^^^ expected identifier, found keyword
    |
help: you can escape reserved keywords to use them as identifiers
    |
175 |     fn r#type(&self) -> zbus::Result<String>;
zeenix commented 2 years ago

Thanks, this was fixed while back already. Just hasn't gotten into a stable release yet.

zeenix commented 2 years ago

In GitLab by @jljatone on Sep 29, 2021, 14:25

well thats a shame. =) sorry for the noise. I apparently missed the 2 closed issues when searching.

zeenix commented 2 years ago

@jljatone Not a problem. :) Thanks for reporting still.