File tree 1 file changed +0
-10
lines changed
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -793,18 +793,13 @@ declare_clippy_lint! {
793
793
/// ### Example
794
794
/// ```rust,ignore
795
795
/// # use std::sync::Mutex;
796
- ///
797
796
/// # struct State {}
798
- ///
799
797
/// # impl State {
800
798
/// # fn foo(&self) -> bool {
801
799
/// # true
802
800
/// # }
803
- ///
804
801
/// # fn bar(&self) {}
805
802
/// # }
806
- ///
807
- ///
808
803
/// let mutex = Mutex::new(State {});
809
804
///
810
805
/// match mutex.lock().unwrap().foo() {
@@ -815,22 +810,17 @@ declare_clippy_lint! {
815
810
/// };
816
811
///
817
812
/// println!("All done!");
818
- ///
819
813
/// ```
820
814
/// Use instead:
821
815
/// ```rust
822
816
/// # use std::sync::Mutex;
823
- ///
824
817
/// # struct State {}
825
- ///
826
818
/// # impl State {
827
819
/// # fn foo(&self) -> bool {
828
820
/// # true
829
821
/// # }
830
- ///
831
822
/// # fn bar(&self) {}
832
823
/// # }
833
- ///
834
824
/// let mutex = Mutex::new(State {});
835
825
///
836
826
/// let is_foo = mutex.lock().unwrap().foo();
You can’t perform that action at this time.
0 commit comments