Skip to content

Commit 053f81c

Browse files
authored
spack: remove_item is deprecated (#881)
1 parent d4ede12 commit 053f81c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spack/src/bundler/chunk/merge.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ impl Bundler<'_> {
9393
info.id, info.fm.name, src.module_id, src.src.value
9494
)
9595
})?;
96-
targets.remove_item(&info.id);
96+
97+
if let Some(pos) = targets.iter().position(|x| *x == info.id) {
98+
targets.remove(pos);
99+
}
97100

98101
if imported.is_es6 {
99102
//{

0 commit comments

Comments
 (0)