fix build warnings & add CI

This commit is contained in:
Maximilian Roos 2019-09-09 06:03:01 -04:00
parent 1878bb8a54
commit cf2c19706e
No known key found for this signature in database
GPG Key ID: 3232F28BEDA66FCD
3 changed files with 4 additions and 2 deletions

View File

@ -21,5 +21,7 @@ steps:
rustc -Vv
echo "##vso[task.prependpath]$HOME/.cargo/bin"
displayName: Install Rust
- bash: RUSTFLAGS="-D warnings" cargo build --all-features
displayName: Build
- bash: RUSTFLAGS="-D warnings" cargo test
displayName: Run tests

View File

@ -114,7 +114,7 @@ pub fn config(
let key = v.to_string();
if result.contains_key(&key) {
result.remove(&key);
result.swap_remove(&key);
config::write_config(&result)?;
} else {
return Err(ShellError::string(&format!(

View File

@ -435,7 +435,7 @@ pub fn view_contents_interactive(
let cursor = cursor();
let _ = cursor.show();
let screen = RawScreen::disable_raw_mode();
let _screen = RawScreen::disable_raw_mode();
Ok(())
}