We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5374e8a commit c259063Copy full SHA for c259063
src/cargo/util/toml_mut/manifest.rs
@@ -494,7 +494,7 @@ fn fix_feature_activations(
494
495
// Remove found idx in revers order so we don't invalidate the idx.
496
for idx in remove_list.iter().rev() {
497
- feature_values.remove(*idx);
+ remove_array_index(feature_values, *idx);
498
}
499
500
if status == DependencyStatus::Required {
@@ -538,3 +538,7 @@ fn non_existent_dependency_err(
538
) -> anyhow::Error {
539
anyhow::format_err!("the dependency `{name}` could not be found in `{table}`.")
540
541
+
542
+fn remove_array_index(array: &mut toml_edit::Array, index: usize) {
543
+ array.remove(index);
544
+}
0 commit comments