From b7fedb88cffd4156a9a36e22912234fe908ad776 Mon Sep 17 00:00:00 2001 From: Catherine <114838443+Centri3@users.noreply.github.com> Date: Fri, 9 Jun 2023 16:28:01 -0500 Subject: [PATCH] Update excessive_nesting.rs --- clippy_lints/src/excessive_nesting.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/clippy_lints/src/excessive_nesting.rs b/clippy_lints/src/excessive_nesting.rs index 1c6cd27789d..4c8ea1ed18d 100644 --- a/clippy_lints/src/excessive_nesting.rs +++ b/clippy_lints/src/excessive_nesting.rs @@ -24,8 +24,8 @@ declare_clippy_lint! { /// # clippy.toml /// excessive-nesting-threshold = 3 /// ``` - /// lib.rs: /// ```rust,ignore + /// // lib.rs /// pub mod a { /// pub struct X; /// impl X { @@ -36,9 +36,10 @@ declare_clippy_lint! { /// } /// } /// } + /// ``` /// Use instead: - /// a.rs: /// ```rust,ignore + /// // a.rs /// fn private_run(x: &X) { /// if true { /// // etc... @@ -52,8 +53,8 @@ declare_clippy_lint! { /// } /// } /// ``` - /// lib.rs: /// ```rust,ignore + /// lib// .rs /// pub mod a; /// ``` #[clippy::version = "1.70.0"]