Skip to content

Commit d017e2d

Browse files
committed
Auto merge of #9217 - Serial-ATA:extra-newlines, r=giraffate
Remove extra newlines in [`significant_drop_in_scrutinee`] docs changelog: none
2 parents 7c8e1bf + 8dfea74 commit d017e2d

File tree

1 file changed

+0
-10
lines changed
  • clippy_lints/src/matches

1 file changed

+0
-10
lines changed

clippy_lints/src/matches/mod.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -793,18 +793,13 @@ declare_clippy_lint! {
793793
/// ### Example
794794
/// ```rust,ignore
795795
/// # use std::sync::Mutex;
796-
///
797796
/// # struct State {}
798-
///
799797
/// # impl State {
800798
/// # fn foo(&self) -> bool {
801799
/// # true
802800
/// # }
803-
///
804801
/// # fn bar(&self) {}
805802
/// # }
806-
///
807-
///
808803
/// let mutex = Mutex::new(State {});
809804
///
810805
/// match mutex.lock().unwrap().foo() {
@@ -815,22 +810,17 @@ declare_clippy_lint! {
815810
/// };
816811
///
817812
/// println!("All done!");
818-
///
819813
/// ```
820814
/// Use instead:
821815
/// ```rust
822816
/// # use std::sync::Mutex;
823-
///
824817
/// # struct State {}
825-
///
826818
/// # impl State {
827819
/// # fn foo(&self) -> bool {
828820
/// # true
829821
/// # }
830-
///
831822
/// # fn bar(&self) {}
832823
/// # }
833-
///
834824
/// let mutex = Mutex::new(State {});
835825
///
836826
/// let is_foo = mutex.lock().unwrap().foo();

0 commit comments

Comments
 (0)