Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Prepare for soundness fixes in glib #77

Merged
merged 1 commit into from Oct 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/object.rs
Expand Up @@ -11,7 +11,7 @@ pub use glib::object::{Downcast, Upcast};
/// The generic type for `GObject` descendants in GDK.
pub struct Object<T>(Ref, PhantomData<T>);

impl<T> Wrapper for Object<T>
impl<T: 'static> Wrapper for Object<T>
where Object<T>: StaticType {
type GlibType = T;
#[inline]
Expand All @@ -28,4 +28,4 @@ impl<T> Clone for Object<T> {
}
}

unsafe impl<T> Upcast<::glib::object::Object> for Object<T> where Object<T>: StaticType { }
unsafe impl<T: 'static> Upcast<::glib::object::Object> for Object<T> where Object<T>: StaticType { }