Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix(index): fix clippy warning
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <tareknaser360@gmail.com>
  • Loading branch information
tareknaser committed Feb 16, 2024
1 parent d0f7e6c commit 63c140d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,14 +440,14 @@ impl ResourceIndex {
}

// new resource exists by the path
return self.forget_path(path, old_id).map(|mut update| {
self.forget_path(path, old_id).map(|mut update| {
update
.added
.insert(path_buf.clone(), new_entry.id);
self.insert_entry(path_buf, new_entry);

update
});
})
}

/// Inserts an entry into the index, updating associated data structures
Expand Down

0 comments on commit 63c140d

Please sign in to comment.