diff options
| author | koka <koka.code@gmail.com> | 2023-01-29 02:27:43 +0900 |
|---|---|---|
| committer | koka <koka.code@gmail.com> | 2023-01-29 02:27:43 +0900 |
| commit | 7716d69757ec65e11332ea222e1c83aafd1f53db (patch) | |
| tree | eb36cfee5fb0d0b3b31ea1ac62aaf104aed873b7 | |
| parent | e65f9f9d32e53ce4edbd1bee96f4e5cdf67e1624 (diff) | |
| download | rust-7716d69757ec65e11332ea222e1c83aafd1f53db.tar.gz rust-7716d69757ec65e11332ea222e1c83aafd1f53db.zip | |
fix: add missing dot to AWAIT_HOLDING_INVALID_TYPE
| -rw-r--r-- | book/src/lint_configuration.md | 9 | ||||
| -rw-r--r-- | clippy_lints/src/utils/conf.rs | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/book/src/lint_configuration.md b/book/src/lint_configuration.md index 9b4460fc655..d425b46be51 100644 --- a/book/src/lint_configuration.md +++ b/book/src/lint_configuration.md @@ -43,6 +43,7 @@ Please use that command to update the file and do not edit it by hand. | [allowed-scripts](#allowed-scripts) | `["Latin"]` | | [enable-raw-pointer-heuristic-for-send](#enable-raw-pointer-heuristic-for-send) | `true` | | [max-suggested-slice-pattern-length](#max-suggested-slice-pattern-length) | `3` | +| [await-holding-invalid-types](#await-holding-invalid-types) | `[]` | | [max-include-file-size](#max-include-file-size) | `1000000` | | [allow-expect-in-tests](#allow-expect-in-tests) | `false` | | [allow-unwrap-in-tests](#allow-unwrap-in-tests) | `false` | @@ -448,6 +449,14 @@ For example, `[_, _, _, e, ..]` is a slice pattern with 4 elements. * [index_refutable_slice](https://rust-lang.github.io/rust-clippy/master/index.html#index_refutable_slice) +### await-holding-invalid-types + + +**Default Value:** `[]` (`Vec<crate::utils::conf::DisallowedPath>`) + +* [await_holding_invalid_type](https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_invalid_type) + + ### max-include-file-size The maximum size of a file included via `include_bytes!()` or `include_str!()`, in bytes diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs index c7aec62c1ee..1b0aa9a63ed 100644 --- a/clippy_lints/src/utils/conf.rs +++ b/clippy_lints/src/utils/conf.rs @@ -411,7 +411,7 @@ define_Conf! { /// the slice pattern that is suggested. If more elements would be necessary, the lint is suppressed. /// For example, `[_, _, _, e, ..]` is a slice pattern with 4 elements. (max_suggested_slice_pattern_length: u64 = 3), - /// Lint: AWAIT_HOLDING_INVALID_TYPE + /// Lint: AWAIT_HOLDING_INVALID_TYPE. (await_holding_invalid_types: Vec<crate::utils::conf::DisallowedPath> = Vec::new()), /// Lint: LARGE_INCLUDE_FILE. /// |
