spack: remove_item is deprecated (#881)

This commit is contained in:
Gurwinder Singh 2020-07-17 07:41:45 +05:30 committed by GitHub
parent d4ede122fc
commit 053f81c761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {
//{