Skip to content
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

analysis/properties: Remove unused ToValue import for property getters #1117

Merged

Conversation

MarijnS95
Copy link
Contributor

Following 1 an unnecessary glib::ToValue import showed up in auto
code, which does not appear to be used in gtk-rs nor gstreamer-rs.
After all, getters convert from Values, not to Values.

Fixes: c6cacb0 ("Implement handling of new Value traits")


Cc @sdroege, this seems correct. Unfortunately gtk-rs was already riddled with #[allow(unused_imports)].

Following [1] an unnecessary `glib::ToValue` import showed up in auto
code, which does not appear to be used in gtk-rs nor gstreamer-rs.
After all, getters convert from Values, not to Values.

Fixes: c6cacb0 ("Implement handling of new Value traits")

[1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/746#note_893561
@sdroege sdroege merged commit 4144cf9 into gtk-rs:master Apr 27, 2021
@MarijnS95 MarijnS95 deleted the unused-tovalue-for-property-getters branch April 27, 2021 08:04
gstreamer-github pushed a commit to sdroege/gstreamer-rs that referenced this pull request Apr 27, 2021
This was temporarily allowed by Value trait refactoring, but the root
cause of the unused imports has been found (`glib::ToValue` for property
getters) and fixed in gtk-rs/gir#1117.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants