mirror of
https://github.com/nushell/nushell.git
synced 2025-04-09 21:28:55 +02:00
Lint [result|option]_unwrap_used as been renamed to clippy::unwrap_used
This commit is contained in:
parent
dd7ee1808a
commit
015d2ee050
@ -52,13 +52,13 @@ steps:
|
|||||||
- bash: RUSTFLAGS="-D warnings" cargo test --all --features stable
|
- bash: RUSTFLAGS="-D warnings" cargo test --all --features stable
|
||||||
condition: eq(variables['style'], 'unflagged')
|
condition: eq(variables['style'], 'unflagged')
|
||||||
displayName: Run tests
|
displayName: Run tests
|
||||||
- bash: RUSTFLAGS="-D warnings" cargo clippy --all --features=stable -- -D clippy::result_unwrap_used -D clippy::option_unwrap_used
|
- bash: RUSTFLAGS="-D warnings" cargo clippy --all --features=stable -- -D clippy::unwrap_used
|
||||||
condition: eq(variables['style'], 'unflagged')
|
condition: eq(variables['style'], 'unflagged')
|
||||||
displayName: Check clippy lints
|
displayName: Check clippy lints
|
||||||
- bash: RUSTFLAGS="-D warnings" cargo test --all --features stable
|
- bash: RUSTFLAGS="-D warnings" cargo test --all --features stable
|
||||||
condition: eq(variables['style'], 'canary')
|
condition: eq(variables['style'], 'canary')
|
||||||
displayName: Run tests
|
displayName: Run tests
|
||||||
- bash: RUSTFLAGS="-D warnings" cargo clippy --all --features=stable -- -D clippy::result_unwrap_used -D clippy::option_unwrap_used
|
- bash: RUSTFLAGS="-D warnings" cargo clippy --all --features=stable -- -D clippy::unwrap_used
|
||||||
condition: eq(variables['style'], 'canary')
|
condition: eq(variables['style'], 'canary')
|
||||||
displayName: Check clippy lints
|
displayName: Check clippy lints
|
||||||
- bash: RUSTFLAGS="-D warnings" cargo test --all --no-default-features
|
- bash: RUSTFLAGS="-D warnings" cargo test --all --no-default-features
|
||||||
|
@ -96,9 +96,9 @@ pub async fn histogram(
|
|||||||
let frequency_column_name = if columns.is_empty() {
|
let frequency_column_name = if columns.is_empty() {
|
||||||
"frequency".to_string()
|
"frequency".to_string()
|
||||||
} else if let Some((key, _)) = columns[0].split_last() {
|
} else if let Some((key, _)) = columns[0].split_last() {
|
||||||
key.as_string()
|
key.as_string()
|
||||||
} else {
|
} else {
|
||||||
"frecuency".to_string()
|
"frecuency".to_string()
|
||||||
};
|
};
|
||||||
|
|
||||||
let column = if let Some(ref column) = column_grouper {
|
let column = if let Some(ref column) = column_grouper {
|
||||||
|
Loading…
Reference in New Issue
Block a user