dbus2 / zbus-old

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

xmlgen: non_snake_case warnings in generated code #177

Open zeenix opened 3 years ago

zeenix commented 3 years ago

In GitLab by @azymohliad on May 22, 2021, 17:45

Very minor issue. If D-Bus method argument is fully uppercase, it remains uppercase in proxy code and produces a warning when compiled.

In particular, Bluez D-Bus API has a bunch of methods taking UUID argument, and this argument remains uppercase in generated code:

    /// ConnectProfile method
    fn connect_profile(&self, UUID: &str) -> zbus::Result<()>;

Which causes a warning:

warning: variable `UUID` should have a snake case name
  --> src/bt/bluez/manager.rs:40:9
   |
40 |         UUID: &str,
   |         ^^^^ help: convert the identifier to snake case: `uuid`
   |
   = note: `#[warn(non_snake_case)]` on by default