diff options
| author | Mason Reed <mason@vector35.com> | 2024-12-03 11:05:06 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-12-03 11:08:39 -0500 |
| commit | 9b22a138793d31972cf2c8b3350eb2025505befe (patch) | |
| tree | e132d96bebd89a08f5f401e994f77a6fe5859851 /rust/examples/idb_import/src/lib.rs | |
| parent | d14513b4abcd436082a768b73de9932fe67646e6 (diff) | |
IDB Import: Bump idb-rs dependency
Fixes many of the known parsing failures
Diffstat (limited to 'rust/examples/idb_import/src/lib.rs')
| -rw-r--r-- | rust/examples/idb_import/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rust/examples/idb_import/src/lib.rs b/rust/examples/idb_import/src/lib.rs index 3308f905..4adf04ca 100644 --- a/rust/examples/idb_import/src/lib.rs +++ b/rust/examples/idb_import/src/lib.rs @@ -23,8 +23,7 @@ impl CustomDebugInfoParser for IDBDebugInfoParser { if let Some(project_file) = view.file().get_project_file() { project_file.name().as_str().ends_with(".i64") || project_file.name().as_str().ends_with(".idb") - } - else { + } else { view.file().filename().as_str().ends_with(".i64") || view.file().filename().as_str().ends_with(".idb") } @@ -52,8 +51,7 @@ impl CustomDebugInfoParser for TILDebugInfoParser { fn is_valid(&self, view: &BinaryView) -> bool { if let Some(project_file) = view.file().get_project_file() { project_file.name().as_str().ends_with(".til") - } - else { + } else { view.file().filename().as_str().ends_with(".til") } } @@ -337,7 +335,9 @@ fn parse_id0_section_info( #[allow(non_snake_case)] #[no_mangle] pub extern "C" fn CorePluginInit() -> bool { - Logger::new("IDB Import").with_level(LevelFilter::Error).init(); + Logger::new("IDB Import") + .with_level(LevelFilter::Error) + .init(); DebugInfoParser::register("IDB Parser", IDBDebugInfoParser); DebugInfoParser::register("TIL Parser", TILDebugInfoParser); true |
