File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff 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();
You can’t perform that action at this time.
0 commit comments