Skip to content

Commit a4b3c40

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents 8c07921 + 44dfadf commit a4b3c40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

favicon.svg

Lines changed: 1 addition & 0 deletions
Loading

jingle_sleigh/src/ffi/context_ffi.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use crate::ffi::instruction::bridge::VarnodeInfoFFI;
99
use crate::VarNode;
1010
use bridge::ContextFFI;
1111
use cxx::{Exception, ExternType, UniquePtr};
12-
use std::pin::Pin;
1312
use std::sync::Mutex;
1413

1514
type ContextGeneratorFp = fn(&str) -> Result<UniquePtr<ContextFFI>, Exception>;
@@ -64,7 +63,7 @@ pub(crate) mod bridge {
6463

6564
pub(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> {
7574
impl<'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
}

0 commit comments

Comments
 (0)