Skip to content

Commit

Permalink
Remove needless map
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed May 2, 2024
1 parent e4859f7 commit cc29e9e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cc29e9e

Please sign in to comment.