summaryrefslogtreecommitdiff
path: root/rust/examples/idb_import/src/lib.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-12-03 11:08:06 -0500
committerMason Reed <mason@vector35.com>2024-12-03 11:08:39 -0500
commitc7f728bf5cdef1d05c6443de800cbc5464c0bb4f (patch)
treef72f6aa463f55874396d95364e480a6330a1c99b /rust/examples/idb_import/src/lib.rs
parent9b22a138793d31972cf2c8b3350eb2025505befe (diff)
IDB Import: Misc clippy lints
Diffstat (limited to 'rust/examples/idb_import/src/lib.rs')
-rw-r--r--rust/examples/idb_import/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
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}");