Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Fix clippy lints and regen #389

Merged
merged 3 commits into from Mar 27, 2021
Merged

Fix clippy lints and regen #389

merged 3 commits into from Mar 27, 2021

Conversation

GuillaumeGomez
Copy link
Member

No description provided.

@@ -47,35 +47,12 @@ macro_rules! prerequisite_list_trait_impl(
($($name:ident),+) => (
impl<$($name: crate::ObjectType),+> PrerequisiteList for ( $($name),+ ) {
fn types() -> Vec<ffi::GType> {
let mut types = Vec::new();
prerequisite_list_trait_inner!(types, $($name)+)
vec![$($name::static_type().to_glib()),+]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh... yes that's easier :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do the same simplification in src/subclass/types.rs for the InterfaceList

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GuillaumeGomez Are you sending a PR for this one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh sorry, didn't see your message. Doing it right away.

@GuillaumeGomez GuillaumeGomez merged commit 51fea9a into gtk-rs:master Mar 27, 2021
@GuillaumeGomez GuillaumeGomez deleted the updates branch March 27, 2021 12:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants