Skip to content
Snippets Groups Projects
Commit 81f9e982 authored by Andre Moreira Magalhaes's avatar Andre Moreira Magalhaes
Browse files

Fix clippy error

This fixes the following error:

  error: this expression creates a reference which is immediately dereferenced by the compiler
     --> src/main.rs:165:27
      |
  165 |     let units = list_file(&file, endian)?;
      |                           ^^^^^ help: change this to: `file`
      |
      = note: `-D clippy::needless-borrow` implied by `-D warnings`
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow



Signed-off-by: default avatarAndre Moreira Magalhaes <andrunko@gmail.com>
parent 854ec168
Branches apertis/v2024dev3
Tags apertis/0.2.3
1 merge request!13Add support for reading DWARF-5 info
Pipeline #602709 skipped
......@@ -165,7 +165,7 @@ fn process_file<E: Endianity>(
endian: E,
strip_prefix: Option<&String>,
) -> Result<Vec<Unit>> {
let units = list_file(&file, endian)?;
let units = list_file(file, endian)?;
let units = if let Some(strip) = strip_prefix {
units
.iter()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment