mirror of
https://github.com/nushell/nushell.git
synced 2025-04-11 14:58:21 +02:00
fix build warnings & add CI
This commit is contained in:
parent
1878bb8a54
commit
cf2c19706e
@ -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
|
||||
|
@ -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!(
|
||||
|
@ -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(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user