Update excessive_nesting.rs

This commit is contained in:
Catherine 2023-06-09 16:28:01 -05:00 committed by GitHub
parent 476efe92e7
commit b7fedb88cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,8 @@ declare_clippy_lint! {
/// # clippy.toml /// # clippy.toml
/// excessive-nesting-threshold = 3 /// excessive-nesting-threshold = 3
/// ``` /// ```
/// lib.rs:
/// ```rust,ignore /// ```rust,ignore
/// // lib.rs
/// pub mod a { /// pub mod a {
/// pub struct X; /// pub struct X;
/// impl X { /// impl X {
@ -36,9 +36,10 @@ declare_clippy_lint! {
/// } /// }
/// } /// }
/// } /// }
/// ```
/// Use instead: /// Use instead:
/// a.rs:
/// ```rust,ignore /// ```rust,ignore
/// // a.rs
/// fn private_run(x: &X) { /// fn private_run(x: &X) {
/// if true { /// if true {
/// // etc... /// // etc...
@ -52,8 +53,8 @@ declare_clippy_lint! {
/// } /// }
/// } /// }
/// ``` /// ```
/// lib.rs:
/// ```rust,ignore /// ```rust,ignore
/// lib// .rs
/// pub mod a; /// pub mod a;
/// ``` /// ```
#[clippy::version = "1.70.0"] #[clippy::version = "1.70.0"]