Skip to content

Commit

Permalink
spack: remove_item is deprecated (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
95th authored Jul 17, 2020
1 parent d4ede12 commit 053f81c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spack/src/bundler/chunk/merge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ impl Bundler<'_> {
info.id, info.fm.name, src.module_id, src.src.value
)
})?;
targets.remove_item(&info.id);

if let Some(pos) = targets.iter().position(|x| *x == info.id) {
targets.remove(pos);
}

if imported.is_es6 {
//{
Expand Down

0 comments on commit 053f81c

Please sign in to comment.