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

Regenerate with latest gir #1091

Merged
merged 5 commits into from
May 8, 2023
Merged

Regenerate with latest gir #1091

merged 5 commits into from
May 8, 2023

Conversation

bilelmoussaoui
Copy link
Member

No description provided.

@@ -660,7 +660,7 @@ impl Pixbuf {
unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_pixbuf_get_formats()) }
}

#[cfg(any(feature = "v2_40"))]
Copy link
Member

@GuillaumeGomez GuillaumeGomez May 4, 2023

Choose a reason for hiding this comment

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

That should be a clippy lint.

EDIT: I made myself a memo to add it.

@@ -137,28 +137,15 @@ impl PixbufAnimation {
}
}

pub trait PixbufAnimationExt: 'static {
Copy link
Member

Choose a reason for hiding this comment

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

Before merging this we should make sure that it's impossible for external code to implement these traits on anything. Otherwise we need to mark the trait unsafe or implement one of the many sealing mechanisms.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have opened #1093 to keep track of this task

Copy link
Member

Choose a reason for hiding this comment

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

I think that is already happening as it requires IsA<T> and that is unsafe?

Copy link
Member Author

Choose a reason for hiding this comment

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

Could we merge this now?

@sdroege sdroege merged commit c85cd50 into master May 8, 2023
@sdroege sdroege deleted the bilelmoussaoui/traits branch May 8, 2023 10:07
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.

4 participants