From c7f728bf5cdef1d05c6443de800cbc5464c0bb4f Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 3 Dec 2024 11:08:06 -0500 Subject: IDB Import: Misc clippy lints --- rust/examples/idb_import/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 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 4adf04ca..48d1b8fd 100644 --- a/rust/examples/idb_import/src/lib.rs +++ b/rust/examples/idb_import/src/lib.rs @@ -200,7 +200,7 @@ pub fn import_til_section( if let TranslateTypeResult::Translated(bn_ty) | TranslateTypeResult::PartiallyTranslated(bn_ty, _) = &ty.ty { - if !debug_info.add_type(&String::from_utf8_lossy(&ty.name), &bn_ty, &[/* TODO */]) { + if !debug_info.add_type(&String::from_utf8_lossy(&ty.name), bn_ty, &[/* TODO */]) { error!( "Unable to add type `{}`", &String::from_utf8_lossy(&ty.name) @@ -214,7 +214,7 @@ pub fn import_til_section( if let TranslateTypeResult::Translated(bn_ty) | TranslateTypeResult::PartiallyTranslated(bn_ty, _) = &ty.ty { - if !debug_info.add_type(&String::from_utf8_lossy(&ty.name), &bn_ty, &[/* TODO */]) { + if !debug_info.add_type(&String::from_utf8_lossy(&ty.name), bn_ty, &[/* TODO */]) { error!( "Unable to fix type `{}`", &String::from_utf8_lossy(&ty.name) @@ -255,7 +255,7 @@ fn parse_id0_section_info( let bnty = ty .as_ref() - .and_then(|ty| match translate_ephemeral_type(debug_file, &ty) { + .and_then(|ty| match translate_ephemeral_type(debug_file, ty) { TranslateTypeResult::Translated(result) => Some(result), TranslateTypeResult::PartiallyTranslated(result, None) => { warn!("Unable to fully translate the type at {addr:#x}"); -- cgit v1.3.1