Skip to content

Commit

Permalink
Fixed clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ph0llux committed Aug 2, 2024
1 parent 2cacb14 commit abbcbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ fn create_iterator<C: AsRef<Path>>(
fn transform_hardlink_map(hardlink_map: HashMap<u64, HashMap<u64, u64>>, files: &mut Vec<(PathBuf, FileHeader)>) -> Result<HashMap<u64, u64>> {
let mut inner_hardlink_map = HashMap::new();
for (path, file_header) in files {
let metadata = metadata(&path)?;
let metadata = metadata(path)?;
if let Some(inner_map) = hardlink_map.get(&metadata.dev()) {
if let Some(fno) = inner_map.get(&metadata.ino()) {
if *fno != file_header.file_number {
Expand Down

0 comments on commit abbcbf3

Please sign in to comment.