File tree 1 file changed +5
-5
lines changed
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 {
850
850
///
851
851
/// fn main() {
852
852
/// let error = SuperError { side: SuperErrorSideKick };
853
- /// let report = Report::new(&error).pretty();
853
+ /// let report = Report::new(&error).pretty(true );
854
854
///
855
855
/// println!("{}", report);
856
856
/// }
@@ -874,15 +874,15 @@ where
874
874
875
875
/// Enable pretty-printing the report.
876
876
#[ 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 ;
879
879
self
880
880
}
881
881
882
882
/// Enable showing a backtrace for the report.
883
883
#[ 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 ;
886
886
self
887
887
}
888
888
You can’t perform that action at this time.
0 commit comments