Add . to end of lint lists in configuration

This commit is contained in:
blyxyas 2024-01-14 01:06:35 +01:00
parent a71211d0b5
commit 2469784cb6
No known key found for this signature in database
GPG Key ID: 9698805551971573
2 changed files with 8 additions and 5 deletions

View File

@ -769,6 +769,8 @@ Additional dotfiles (files or directories starting with a dot) to allow
## `enforce-iter-loop-reborrow` ## `enforce-iter-loop-reborrow`
Whether to recommend using implicit into iter for reborrowed values.
#### Example #### Example
```no_run ```no_run
let mut vec = vec![1, 2, 3]; let mut vec = vec![1, 2, 3];
@ -793,7 +795,7 @@ for _ in &mut *rmvec {}
## `check-private-items` ## `check-private-items`
Whether to also run the listed lints on private items.
**Default Value:** `false` **Default Value:** `false`
@ -806,7 +808,8 @@ for _ in &mut *rmvec {}
## `pub-underscore-fields-behavior` ## `pub-underscore-fields-behavior`
Meow "public" fields in a struct that are prefixed with an underscore based on their
exported visibility, or whether they are marked as "pub".
**Default Value:** `"PublicallyExported"` **Default Value:** `"PublicallyExported"`

View File

@ -523,7 +523,7 @@ pub fn get_configuration_metadata() -> Vec<ClippyConfiguration> {
/// ///
/// Additional dotfiles (files or directories starting with a dot) to allow /// Additional dotfiles (files or directories starting with a dot) to allow
(allowed_dotfiles: FxHashSet<String> = FxHashSet::default()), (allowed_dotfiles: FxHashSet<String> = FxHashSet::default()),
/// Lint: EXPLICIT_ITER_LOOP /// Lint: EXPLICIT_ITER_LOOP.
/// ///
/// Whether to recommend using implicit into iter for reborrowed values. /// Whether to recommend using implicit into iter for reborrowed values.
/// ///
@ -543,11 +543,11 @@ pub fn get_configuration_metadata() -> Vec<ClippyConfiguration> {
/// for _ in &mut *rmvec {} /// for _ in &mut *rmvec {}
/// ``` /// ```
(enforce_iter_loop_reborrow: bool = false), (enforce_iter_loop_reborrow: bool = false),
/// Lint: MISSING_SAFETY_DOC, UNNECESSARY_SAFETY_DOC, MISSING_PANICS_DOC, MISSING_ERRORS_DOC /// Lint: MISSING_SAFETY_DOC, UNNECESSARY_SAFETY_DOC, MISSING_PANICS_DOC, MISSING_ERRORS_DOC.
/// ///
/// Whether to also run the listed lints on private items. /// Whether to also run the listed lints on private items.
(check_private_items: bool = false), (check_private_items: bool = false),
/// Lint: PUB_UNDERSCORE_FIELDS /// Lint: PUB_UNDERSCORE_FIELDS.
/// ///
/// Lint "public" fields in a struct that are prefixed with an underscore based on their /// Lint "public" fields in a struct that are prefixed with an underscore based on their
/// exported visibility, or whether they are marked as "pub". /// exported visibility, or whether they are marked as "pub".