Skip to content

Commit

Permalink
updated indexmap
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 28, 2024
1 parent 7ab1166 commit d7cb481
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/config/config_file/mise_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ impl ConfigFile for MiseToml {
}

fn remove_plugin(&mut self, fa: &ForgeArg) {
self.toolset.versions.remove(fa);
self.toolset.versions.shift_remove(fa);
if let Some(tools) = self.doc.get_mut("tools") {
if let Some(tools) = tools.as_table_like_mut() {
tools.remove(&fa.to_string());
Expand Down
2 changes: 1 addition & 1 deletion src/config/config_file/tool_versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl ConfigFile for ToolVersions {
}

fn remove_plugin(&mut self, fa: &ForgeArg) {
self.plugins.remove(fa);
self.plugins.shift_remove(fa);
}

fn replace_versions(&mut self, fa: &ForgeArg, versions: &[String]) {
Expand Down
4 changes: 2 additions & 2 deletions src/config/env_directive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl EnvResults {
env.insert(k, (v, Some(source.clone())));
}
EnvDirective::Rm(k) => {
env.remove(&k);
env.shift_remove(&k);
r.env_remove.insert(k);
}
EnvDirective::Path(input) => {
Expand Down Expand Up @@ -132,7 +132,7 @@ impl EnvResults {
env.insert(k.clone(), (v.clone(), Some(source.clone())));
}
EnvDiffOperation::Remove(k) => {
env.remove(&k);
env.shift_remove(&k);
r.env_remove.insert(k);
}
}
Expand Down

0 comments on commit d7cb481

Please sign in to comment.