From cc29e9ed283137229617456146fcdddc6b9c3881 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 May 2024 19:30:09 -0300 Subject: [PATCH] Remove needless map --- src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 40ce465..66f22a1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -545,11 +545,7 @@ unsafe fn trace_from_process_id( if context.show_kernel_samples { let kernel_module_paths = list_kernel_modules(); - context.image_paths.extend( - kernel_module_paths - .into_iter() - .map(|(path, image_base, image_size)| (path, image_base, image_size)), - ); + context.image_paths.extend(kernel_module_paths); } Ok(context)