Skip to content

Commit

Permalink
Merge pull request #1486 from pbor/vmeth
Browse files Browse the repository at this point in the history
examples: use a better type for Pet ffi instances in the virtual_methods example
  • Loading branch information
sdroege authored Aug 26, 2024
2 parents efde2b9 + a6ed7b4 commit 6900cf9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/virtual_methods/pet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <super::Pet as super::ObjectSubclass>::Instance;

/// Custom class struct for the [`Pet`](super::Pet) class.
///
Expand Down

0 comments on commit 6900cf9

Please sign in to comment.