From 9b22a138793d31972cf2c8b3350eb2025505befe Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 3 Dec 2024 11:05:06 -0500 Subject: IDB Import: Bump idb-rs dependency Fixes many of the known parsing failures --- rust/examples/idb_import/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rust/examples/idb_import/src/lib.rs') 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 -- cgit v1.3.1