File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -850,7 +850,7 @@ impl dyn Error + Send + Sync {
850850///
851851/// fn main() {
852852/// let error = SuperError { side: SuperErrorSideKick };
853- /// let report = Report::new(&error).pretty();
853+ /// let report = Report::new(&error).pretty(true );
854854///
855855/// println!("{}", report);
856856/// }
@@ -874,15 +874,15 @@ where
874874
875875 /// Enable pretty-printing the report.
876876 #[ unstable( feature = "error_reporter" , issue = "90172" ) ]
877- pub fn pretty ( mut self ) -> Self {
878- self . pretty = true ;
877+ pub fn pretty ( mut self , pretty : bool ) -> Self {
878+ self . pretty = pretty ;
879879 self
880880 }
881881
882882 /// Enable showing a backtrace for the report.
883883 #[ unstable( feature = "error_reporter" , issue = "90172" ) ]
884- pub fn show_backtrace ( mut self ) -> Self {
885- self . show_backtrace = true ;
884+ pub fn show_backtrace ( mut self , show_backtrace : bool ) -> Self {
885+ self . show_backtrace = show_backtrace ;
886886 self
887887 }
888888
You can’t perform that action at this time.
0 commit comments