Skip to content

Commit

Permalink
Lint + format
Browse files Browse the repository at this point in the history
  • Loading branch information
br0kej committed Nov 16, 2024
1 parent 48cc134 commit a8bb10f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub enum ExtractionJobType {
PCodeFunc,
PCodeBB,
LocalVariableXrefs,
GlobalStrings
GlobalStrings,
}

#[derive(Debug)]
Expand Down Expand Up @@ -607,8 +607,6 @@ impl FileToBeProcessed {
r2p.close();
info!("r2p closed");



info!("Writing extracted data to file");
self.write_to_json(&json!(function_decomp))
} else {
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,8 @@ fn main() {
)
}
InstructionMode::PCode => {
let pcode_file_type = match pcode_file_format.as_ref().unwrap().as_str() {
let pcode_file_type = match pcode_file_format.as_ref().unwrap().as_str()
{
"pcode-func" => PCodeFileTypes::PCodeJsonFile,
"pcode-bb" => PCodeFileTypes::PCodeWithBBFile,
_ => unreachable!("Invalid PCode file type"),
Expand Down

0 comments on commit a8bb10f

Please sign in to comment.