mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Auto merge of #10918 - Centri3:patch-2, r=xFrednet
Fix `excessive_nesting` example
whoops 😅
changelog: none
This commit is contained in:
commit
9011c4d248
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user