diff --git a/.azure/azure-pipelines.yml b/.azure/azure-pipelines.yml index 50ebcf1e24..b384e8df38 100644 --- a/.azure/azure-pipelines.yml +++ b/.azure/azure-pipelines.yml @@ -21,5 +21,5 @@ steps: rustc -Vv echo "##vso[task.prependpath]$HOME/.cargo/bin" displayName: Install Rust - - bash: RUSTFLAGS="-D warnings" cargo test + - bash: RUSTFLAGS="-D warnings" cargo test --all-features displayName: Run tests diff --git a/src/commands/config.rs b/src/commands/config.rs index 78f1ad399c..97b2a948e9 100644 --- a/src/commands/config.rs +++ b/src/commands/config.rs @@ -137,7 +137,7 @@ pub fn config( let key = v.to_string(); if result.contains_key(&key) { - result.remove(&key); + result.swap_remove(&key); config::write(&result, &configuration)?; } else { return Err(ShellError::string(&format!(