error[E0308]: mismatched types
--> src/service/client.rs:17:1
|
17 | #[dbus_interface(name = "org.freedesktop.GeoClue2.Client")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `zbus::zvariant::Error`, found enum `Infallible`
|
note: return type inferred to be `zbus::zvariant::Error` here
--> src/service/client.rs:17:1
|
17 | #[dbus_interface(name = "org.freedesktop.GeoClue2.Client")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in the attribute macro `dbus_interface` (in Nightly builds, run with -Z macro-backtrace for more info)
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
In GitLab by @bilelmoussaoui on Jan 31, 2022, 14:31
If you are writing a dbus interface, and you have a custom wrapper type like
Passing that type to your interface to set a property makes it fail
The error would be something like
I tend to believe it is caused by this https://gitlab.freedesktop.org/dbus/zbus/-/blob/main/zbus_macros/src/iface.rs#L236 but who knows