-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zbus: Use typed associated constants for ProxyDefault #482
Conversation
Will be used in the next commit in ProxyDefault and so in the dbus_proxy macro
As zbus_names::InterfaceName/zbus_names::BusName/zvariant::ObjectPath are much clearer then a &'static str
Actually, my changes are not that great. As clippy complains about |
That sounds like a good change anyway? |
It is yes but involves no longer going through TryFrom as that can't be const for obvious reasons |
That's fine. We just need to ensure the string is checked for validity. |
@bilelmoussaoui what's the update on this? |
Since EDIT: Ooooo. |
I'm a bit confused. AFAIK there are no errors involved here. 🤔 |
In order to make This is specifically related to |
Thanks for explaining. My memory of this PR's details was a bit foggy.
I think it shouldn't be using
We need dedicated variants then and they can avoid |
I understand. I'll give this one a go once I'm done with #496 ... and I promise I'll read the contributors guide first this time ;) |
Awesome! I wish most people had your positive attitude towards my perfectionism. :) |
New discovery: since Are you okay with that? |
Maybe zvariant::Error can have a variant which contains this new enum? |
I guess that's the only option so yeah.
Sure. We can do something like |
|
@bilelmoussaoui I'm assuming you won't be finishing this anytime soon. @TTWNO if you want to do this, you'll need to create a new PR anyway so I'm closing this. |
This is a breaking API change, so it makes sense for the upcoming zbus release