aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/remove_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/remove_command.rs')
-rw-r--r--crates/shirabe/src/command/remove_command.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/command/remove_command.rs b/crates/shirabe/src/command/remove_command.rs
index 75f1dcb..3604c90 100644
--- a/crates/shirabe/src/command/remove_command.rs
+++ b/crates/shirabe/src/command/remove_command.rs
@@ -478,12 +478,12 @@ impl RemoveCommand {
for (link_type, names) in &to_remove {
for name in names {
if let Some(section) = links.get_mut(link_type.as_str()) {
- section.remove(name.as_str());
+ section.shift_remove(name.as_str());
}
}
}
- root_package.set_requires(links.remove("require").unwrap_or_default());
- root_package.set_dev_requires(links.remove("require-dev").unwrap_or_default());
+ root_package.set_requires(links.shift_remove("require").unwrap_or_default());
+ root_package.set_dev_requires(links.shift_remove("require-dev").unwrap_or_default());
}
let mut command_event = crate::plugin::CommandEvent::new(