fix: use from trait

pull/21/head
EKTehtris 4 years ago
parent e26b3e4306
commit 05c15f53a9

@ -9,7 +9,7 @@ pub struct ProbeContext {
impl ProbeContext { impl ProbeContext {
pub fn new(ctx: *mut c_void) -> ProbeContext { pub fn new(ctx: *mut c_void) -> ProbeContext {
ProbeContext { ProbeContext {
regs: Regs { regs: ctx as *mut pt_regs }, regs: Regs::from(ctx)
} }
} }
} }

Loading…
Cancel
Save