Skip to content

Commit

Permalink
add trait bounds to class and wrapper params for Construct trait
Browse files Browse the repository at this point in the history
  • Loading branch information
glowcoil committed Jun 10, 2023
1 parent 0590c93 commit 560ff01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com-scrape-types/src/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub trait Wrapper<C: Class + ?Sized> {
unsafe fn release(ptr: *mut C) -> usize;
}

pub unsafe trait Construct<C, W, const OFFSET: isize>: Interface {
pub unsafe trait Construct<C: Class, W: Wrapper<C>, const OFFSET: isize>: Interface {
const OBJ: Self;
}

Expand Down

0 comments on commit 560ff01

Please sign in to comment.