Lint [result|option]_unwrap_used as been renamed to clippy::unwrap_used

This commit is contained in:
Andrés N. Robalino 2020-08-12 08:49:03 -05:00
parent dd7ee1808a
commit 015d2ee050
2 changed files with 4 additions and 4 deletions

View File

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

View File

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