fix: duplicate files ending up as overrides in mrpack export (#6015)

* fix: duplicate files ending up as overrides in mrpack export

* fmt
This commit is contained in:
Prospector
2026-05-06 15:00:11 -07:00
committed by GitHub
parent 5875e4332f
commit beff44767e

View File

@@ -951,15 +951,13 @@ impl Profile {
InitialScanFile,
> = keys.into_iter().map(|k| (k.path.clone(), k)).collect();
let mut file_info_by_hash: std::collections::HashMap<
String,
CachedFile,
> = file_info.into_iter().map(|f| (f.hash.clone(), f)).collect();
let file_info_by_hash: std::collections::HashMap<String, CachedFile> =
file_info.into_iter().map(|f| (f.hash.clone(), f)).collect();
let files = DashMap::new();
for hash in file_hashes {
let file = file_info_by_hash.remove(&hash.hash);
let file = file_info_by_hash.get(&hash.hash).cloned();
let trimmed = hash.path.trim_end_matches(".disabled");
if let Some(initial_file) = keys_by_path.remove(trimmed) {