Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
Remove unnecessary .clone().
  • Loading branch information
janaknat committed Oct 11, 2023
1 parent 7b4e53e commit 0c4f58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub fn report(report: &Report) -> Result<()> {
error!("Cannot process two runs with the same name");
return Ok(())
}
dir_stems.push(path.clone().file_stem().unwrap().to_str().unwrap().to_string());
dir_stems.push(path.file_stem().unwrap().to_str().unwrap().to_string());
dir_paths.push(path.to_str().unwrap().to_string());
}

Expand Down

0 comments on commit 0c4f58c

Please sign in to comment.