Skip to content

Commit 2469784

Browse files
committed
Add . to end of lint lists in configuration
1 parent a71211d commit 2469784

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

book/src/lint_configuration.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ Additional dotfiles (files or directories starting with a dot) to allow
769769

770770

771771
## `enforce-iter-loop-reborrow`
772+
Whether to recommend using implicit into iter for reborrowed values.
773+
772774
#### Example
773775
```no_run
774776
let mut vec = vec![1, 2, 3];
@@ -793,7 +795,7 @@ for _ in &mut *rmvec {}
793795

794796

795797
## `check-private-items`
796-
798+
Whether to also run the listed lints on private items.
797799

798800
**Default Value:** `false`
799801

@@ -806,7 +808,8 @@ for _ in &mut *rmvec {}
806808

807809

808810
## `pub-underscore-fields-behavior`
809-
811+
Meow "public" fields in a struct that are prefixed with an underscore based on their
812+
exported visibility, or whether they are marked as "pub".
810813

811814
**Default Value:** `"PublicallyExported"`
812815

clippy_config/src/conf.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ define_Conf! {
523523
///
524524
/// Additional dotfiles (files or directories starting with a dot) to allow
525525
(allowed_dotfiles: FxHashSet<String> = FxHashSet::default()),
526-
/// Lint: EXPLICIT_ITER_LOOP
526+
/// Lint: EXPLICIT_ITER_LOOP.
527527
///
528528
/// Whether to recommend using implicit into iter for reborrowed values.
529529
///
@@ -543,11 +543,11 @@ define_Conf! {
543543
/// for _ in &mut *rmvec {}
544544
/// ```
545545
(enforce_iter_loop_reborrow: bool = false),
546-
/// Lint: MISSING_SAFETY_DOC, UNNECESSARY_SAFETY_DOC, MISSING_PANICS_DOC, MISSING_ERRORS_DOC
546+
/// Lint: MISSING_SAFETY_DOC, UNNECESSARY_SAFETY_DOC, MISSING_PANICS_DOC, MISSING_ERRORS_DOC.
547547
///
548548
/// Whether to also run the listed lints on private items.
549549
(check_private_items: bool = false),
550-
/// Lint: PUB_UNDERSCORE_FIELDS
550+
/// Lint: PUB_UNDERSCORE_FIELDS.
551551
///
552552
/// Lint "public" fields in a struct that are prefixed with an underscore based on their
553553
/// exported visibility, or whether they are marked as "pub".

0 commit comments

Comments
 (0)