Open zeenix opened 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:
UUID
/// 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
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:Which causes a warning: