diff --git a/examples/virtual_methods/pet.rs b/examples/virtual_methods/pet.rs index 79692e5d8ab3..a8aa7c692044 100644 --- a/examples/virtual_methods/pet.rs +++ b/examples/virtual_methods/pet.rs @@ -5,8 +5,7 @@ use glib::subclass::prelude::*; #[allow(dead_code)] pub mod ffi { /// The instance pointer is used for references to the object. - #[repr(C)] - pub struct Instance(std::ffi::c_void); + pub type Instance = ::Instance; /// Custom class struct for the [`Pet`](super::Pet) class. ///