mirror of
https://github.com/nushell/nushell.git
synced 2025-04-25 05:38:20 +02:00
fix build warnings & add CI
This commit is contained in:
parent
1878bb8a54
commit
cf2c19706e
@ -21,5 +21,7 @@ steps:
|
|||||||
rustc -Vv
|
rustc -Vv
|
||||||
echo "##vso[task.prependpath]$HOME/.cargo/bin"
|
echo "##vso[task.prependpath]$HOME/.cargo/bin"
|
||||||
displayName: Install Rust
|
displayName: Install Rust
|
||||||
|
- bash: RUSTFLAGS="-D warnings" cargo build --all-features
|
||||||
|
displayName: Build
|
||||||
- bash: RUSTFLAGS="-D warnings" cargo test
|
- bash: RUSTFLAGS="-D warnings" cargo test
|
||||||
displayName: Run tests
|
displayName: Run tests
|
||||||
|
@ -114,7 +114,7 @@ pub fn config(
|
|||||||
let key = v.to_string();
|
let key = v.to_string();
|
||||||
|
|
||||||
if result.contains_key(&key) {
|
if result.contains_key(&key) {
|
||||||
result.remove(&key);
|
result.swap_remove(&key);
|
||||||
config::write_config(&result)?;
|
config::write_config(&result)?;
|
||||||
} else {
|
} else {
|
||||||
return Err(ShellError::string(&format!(
|
return Err(ShellError::string(&format!(
|
||||||
|
@ -435,7 +435,7 @@ pub fn view_contents_interactive(
|
|||||||
let cursor = cursor();
|
let cursor = cursor();
|
||||||
let _ = cursor.show();
|
let _ = cursor.show();
|
||||||
|
|
||||||
let screen = RawScreen::disable_raw_mode();
|
let _screen = RawScreen::disable_raw_mode();
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user