diff options
| author | bors <bors@rust-lang.org> | 2022-07-21 06:04:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-21 06:04:43 +0000 |
| commit | d017e2dacd3306a892f08d1e53dc8cb892b743b4 (patch) | |
| tree | 0c53dc4c60c2a1758081e076c84eeab7e87e9c8c | |
| parent | 7c8e1bff909bf258cc34e8e0354d024b34e163e9 (diff) | |
| parent | 8dfea7436746c7adce35504609c8ed0f3c59478b (diff) | |
| download | rust-d017e2dacd3306a892f08d1e53dc8cb892b743b4.tar.gz rust-d017e2dacd3306a892f08d1e53dc8cb892b743b4.zip | |
Auto merge of #9217 - Serial-ATA:extra-newlines, r=giraffate
Remove extra newlines in [`significant_drop_in_scrutinee`] docs changelog: none
| -rw-r--r-- | clippy_lints/src/matches/mod.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/clippy_lints/src/matches/mod.rs b/clippy_lints/src/matches/mod.rs index d55082c66dc..a3d69a4d09c 100644 --- a/clippy_lints/src/matches/mod.rs +++ b/clippy_lints/src/matches/mod.rs @@ -793,18 +793,13 @@ declare_clippy_lint! { /// ### Example /// ```rust,ignore /// # use std::sync::Mutex; - /// /// # struct State {} - /// /// # impl State { /// # fn foo(&self) -> bool { /// # true /// # } - /// /// # fn bar(&self) {} /// # } - /// - /// /// let mutex = Mutex::new(State {}); /// /// match mutex.lock().unwrap().foo() { @@ -815,22 +810,17 @@ declare_clippy_lint! { /// }; /// /// println!("All done!"); - /// /// ``` /// Use instead: /// ```rust /// # use std::sync::Mutex; - /// /// # struct State {} - /// /// # impl State { /// # fn foo(&self) -> bool { /// # true /// # } - /// /// # fn bar(&self) {} /// # } - /// /// let mutex = Mutex::new(State {}); /// /// let is_foo = mutex.lock().unwrap().foo(); |
