Merge pull request #628 from max-sixty/build-warnings

Fix build warnings & add CI
This commit is contained in:
Jonathan Turner 2019-09-11 18:40:03 +12:00 committed by GitHub
commit f05c7d6792
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -117,7 +117,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!(