Replies: 1 comment 2 replies
-
I think this would make sense but it's quite a lot of work. It's not just a matter of switching to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Some code generated by glib-macros trips on certain clippy::restriction lints, specifically
clippy::impl_trait_in_params
andclippy::as_conversions
(and related more specific lints about use ofas
). The former is probably too exotic, but personally, I do like to use the latter, because I don't likeas
mixing up all sorts of different safe and less safe conversions.Currently, I'm working around this by isolating glib enums in a mod block with allow attributes, but I'd love if gtk-core-rs supported
clippy::as_conversions
out of the box.But I understand that denying
as
is probably quite controversial, so I figured I'd put this up for discussion first.If you agree that this would be a welcome change, I'd make a pull request to make gtk-rs-core (at least glib and gio) work without
as
and denyclippy::as_conversions
. If you disagree, then never mind 🙂Beta Was this translation helpful? Give feedback.
All reactions