Skip to content

Commit 9011c4d

Browse files
committed
Auto merge of #10918 - Centri3:patch-2, r=xFrednet
Fix `excessive_nesting` example whoops 😅 changelog: none
2 parents d44ea7c + d1957b8 commit 9011c4d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clippy_lints/src/excessive_nesting.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ declare_clippy_lint! {
2424
/// # clippy.toml
2525
/// excessive-nesting-threshold = 3
2626
/// ```
27-
/// lib.rs:
2827
/// ```rust,ignore
28+
/// // lib.rs
2929
/// pub mod a {
3030
/// pub struct X;
3131
/// impl X {
@@ -36,9 +36,10 @@ declare_clippy_lint! {
3636
/// }
3737
/// }
3838
/// }
39+
/// ```
3940
/// Use instead:
40-
/// a.rs:
4141
/// ```rust,ignore
42+
/// // a.rs
4243
/// fn private_run(x: &X) {
4344
/// if true {
4445
/// // etc...
@@ -52,8 +53,8 @@ declare_clippy_lint! {
5253
/// }
5354
/// }
5455
/// ```
55-
/// lib.rs:
5656
/// ```rust,ignore
57+
/// // lib.rs
5758
/// pub mod a;
5859
/// ```
5960
#[clippy::version = "1.70.0"]

0 commit comments

Comments
 (0)