File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ use crate::ffi::instruction::bridge::VarnodeInfoFFI;
99use crate :: VarNode ;
1010use bridge:: ContextFFI ;
1111use cxx:: { Exception , ExternType , UniquePtr } ;
12- use std:: pin:: Pin ;
1312use std:: sync:: Mutex ;
1413
1514type ContextGeneratorFp = fn ( & str ) -> Result < UniquePtr < ContextFFI > , Exception > ;
@@ -64,7 +63,7 @@ pub(crate) mod bridge {
6463
6564pub ( crate ) struct ImageFFI < ' a > {
6665 /// A thing that has bytes at addresses
67- pub ( crate ) provider : Pin < Box < dyn ImageProvider + ' a > > ,
66+ pub ( crate ) provider : Box < dyn ImageProvider + ' a > ,
6867 /// The current virtual base address for the image loaded by this context.
6968 pub ( crate ) base_offset : u64 ,
7069 /// The space that this image is attached to. For now, always the
@@ -75,7 +74,7 @@ pub(crate) struct ImageFFI<'a> {
7574impl < ' a > ImageFFI < ' a > {
7675 pub ( crate ) fn new < T : ImageProvider + ' a > ( provider : T , idx : usize ) -> Self {
7776 Self {
78- provider : Box :: pin ( provider) ,
77+ provider : Box :: new ( provider) ,
7978 base_offset : 0 ,
8079 space_index : idx,
8180 }
You can’t perform that action at this time.
0 commit comments