diff --git a/rust/examples/workflow.rs b/rust/examples/workflow.rs index 60e7e2c0a..189b14968 100644 --- a/rust/examples/workflow.rs +++ b/rust/examples/workflow.rs @@ -29,10 +29,7 @@ fn example_activity(analysis_context: &AnalysisContext) { llil_instr.visit_tree(&mut |expr, info| { if let ExprInfo::Const(_op) = info { // Replace all consts with 0x1337. - println!( - "Replacing llil expression @ 0x{:x} : {}", - instr, expr.index - ); + println!("Replacing llil expression @ 0x{:x} : {}", instr, expr.index); unsafe { llil.replace_expression(expr.index, llil.const_int(4, 0x1337)) }; diff --git a/rust/src/hlil/instruction.rs b/rust/src/hlil/instruction.rs index b114f02ba..59c3876b3 100644 --- a/rust/src/hlil/instruction.rs +++ b/rust/src/hlil/instruction.rs @@ -754,7 +754,9 @@ impl HighLevelILInstruction { // TODO: Replace with a From for RegisterValueType. // TODO: We might also want to change the type of `op.constant_data_kind` // TODO: To RegisterValueType and do the conversion when creating instruction. - state: unsafe { std::mem::transmute::(op.constant_data_kind) }, + state: unsafe { + std::mem::transmute::(op.constant_data_kind) + }, value: op.constant_data_value, offset: 0, size: op.size, diff --git a/rust/src/mlil/instruction.rs b/rust/src/mlil/instruction.rs index 6892d7176..5c070779c 100644 --- a/rust/src/mlil/instruction.rs +++ b/rust/src/mlil/instruction.rs @@ -753,7 +753,9 @@ impl MediumLevelILInstruction { // TODO: Replace with a From for RegisterValueType. // TODO: We might also want to change the type of `op.constant_data_kind` // TODO: To RegisterValueType and do the conversion when creating instruction. - state: unsafe { std::mem::transmute::(op.constant_data_kind) }, + state: unsafe { + std::mem::transmute::(op.constant_data_kind) + }, value: op.constant_data_value, offset: 0, size: op.size, diff --git a/rust/src/typecontainer.rs b/rust/src/typecontainer.rs index 341a44796..5453e3d84 100644 --- a/rust/src/typecontainer.rs +++ b/rust/src/typecontainer.rs @@ -351,7 +351,7 @@ impl TypeContainer { /// Parse an entire block of source into types, variables, and functions, with /// knowledge of the types in the Type Container. - /// + /// /// * `source` - Source code to parse /// * `file_name` - Name of the file containing the source (optional: exists on disk) /// * `options` - String arguments to pass as options, e.g. command line arguments