Skip to content

Commit 315eda0

Browse files
committed
fmt
1 parent a288dd3 commit 315eda0

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

jingle_python/src/modeled_block.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use crate::state::PythonState;
2+
use crate::varode_iterator::VarNodeIterator;
23
use jingle::modeling::{ModeledBlock, ModelingContext};
34
use jingle::sleigh::Instruction;
45
use jingle::JingleContext;
56
use pyo3::{pyclass, pymethods, PyResult};
6-
use crate::varode_iterator::VarNodeIterator;
77

88
#[pyclass(unsendable)]
99
pub struct PythonModeledBlock {
@@ -37,7 +37,6 @@ impl PythonModeledBlock {
3737
}
3838
}
3939

40-
4140
pub fn get_input_bvs(&self) -> VarNodeIterator {
4241
VarNodeIterator::new(
4342
// intentional: that AST has the input in it too

jingle_python/src/varode_iterator.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
use crate::bitvec::adapt_bv;
12
use jingle::modeling::State;
23
use jingle::varnode::ResolvedVarnode;
34
use pyo3::{pyclass, pymethods, Py, PyAny, PyRef, PyRefMut};
4-
use crate::bitvec::adapt_bv;
55

66
#[pyclass(unsendable)]
77
pub struct VarNodeIterator {
@@ -10,8 +10,14 @@ pub struct VarNodeIterator {
1010
}
1111

1212
impl VarNodeIterator {
13-
pub fn new<T: Iterator<Item = ResolvedVarnode<'static>> + 'static>(state: State<'static>, t: T) -> Self {
14-
Self { state, vn: Box::new(t) }
13+
pub fn new<T: Iterator<Item = ResolvedVarnode<'static>> + 'static>(
14+
state: State<'static>,
15+
t: T,
16+
) -> Self {
17+
Self {
18+
state,
19+
vn: Box::new(t),
20+
}
1521
}
1622
}
1723
#[pymethods]

0 commit comments

Comments
 (0)