From a8f9655189e327f96b54f90842cab1b19abcde14 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Mon, 8 Nov 2021 19:37:38 +0100 Subject: [PATCH] lifetime --- bindings/rust/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 6d007edc..b3652404 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -87,7 +87,7 @@ pub struct Unicorn<'a, D: 'a> { pub data: D, } -impl Unicorn<()> { +impl<'a> Unicorn<'a, ()> { /// Create a new instance of the unicorn engine for the specified architecture /// and hardware mode. pub fn new(arch: Arch, mode: Mode) -> Result, uc_error> {