@@ -242,15 +242,15 @@ impl GraphicalReportHandler {
242242 pub fn render_report (
243243 & self ,
244244 f : & mut impl fmt:: Write ,
245- diagnostic : & ( dyn Diagnostic ) ,
245+ diagnostic : & dyn Diagnostic ,
246246 ) -> fmt:: Result {
247247 self . render_report_inner ( f, diagnostic, diagnostic. source_code ( ) )
248248 }
249249
250250 fn render_report_inner (
251251 & self ,
252252 f : & mut impl fmt:: Write ,
253- diagnostic : & ( dyn Diagnostic ) ,
253+ diagnostic : & dyn Diagnostic ,
254254 parent_src : Option < & dyn SourceCode > ,
255255 ) -> fmt:: Result {
256256 let src = diagnostic. source_code ( ) . or ( parent_src) ;
@@ -281,7 +281,7 @@ impl GraphicalReportHandler {
281281 fn render_header (
282282 & self ,
283283 f : & mut impl fmt:: Write ,
284- diagnostic : & ( dyn Diagnostic ) ,
284+ diagnostic : & dyn Diagnostic ,
285285 is_nested : bool ,
286286 ) -> fmt:: Result {
287287 let severity_style = match diagnostic. severity ( ) {
@@ -326,7 +326,7 @@ impl GraphicalReportHandler {
326326 fn render_causes (
327327 & self ,
328328 f : & mut impl fmt:: Write ,
329- diagnostic : & ( dyn Diagnostic ) ,
329+ diagnostic : & dyn Diagnostic ,
330330 parent_src : Option < & dyn SourceCode > ,
331331 ) -> fmt:: Result {
332332 let src = diagnostic. source_code ( ) . or ( parent_src) ;
@@ -424,7 +424,7 @@ impl GraphicalReportHandler {
424424 Ok ( ( ) )
425425 }
426426
427- fn render_footer ( & self , f : & mut impl fmt:: Write , diagnostic : & ( dyn Diagnostic ) ) -> fmt:: Result {
427+ fn render_footer ( & self , f : & mut impl fmt:: Write , diagnostic : & dyn Diagnostic ) -> fmt:: Result {
428428 if let Some ( help) = diagnostic. help ( ) {
429429 let width = self . termwidth . saturating_sub ( 2 ) ;
430430 let initial_indent = " help: " . style ( self . theme . styles . help ) . to_string ( ) ;
@@ -447,7 +447,7 @@ impl GraphicalReportHandler {
447447 fn render_related (
448448 & self ,
449449 f : & mut impl fmt:: Write ,
450- diagnostic : & ( dyn Diagnostic ) ,
450+ diagnostic : & dyn Diagnostic ,
451451 parent_src : Option < & dyn SourceCode > ,
452452 ) -> fmt:: Result {
453453 let src = diagnostic. source_code ( ) . or ( parent_src) ;
@@ -535,7 +535,7 @@ impl GraphicalReportHandler {
535535 fn render_snippets (
536536 & self ,
537537 f : & mut impl fmt:: Write ,
538- diagnostic : & ( dyn Diagnostic ) ,
538+ diagnostic : & dyn Diagnostic ,
539539 opt_source : Option < & dyn SourceCode > ,
540540 ) -> fmt:: Result {
541541 let source = match opt_source {
@@ -1361,7 +1361,7 @@ impl GraphicalReportHandler {
13611361}
13621362
13631363impl ReportHandler for GraphicalReportHandler {
1364- fn debug ( & self , diagnostic : & ( dyn Diagnostic ) , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1364+ fn debug ( & self , diagnostic : & dyn Diagnostic , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
13651365 if f. alternate ( ) {
13661366 return fmt:: Debug :: fmt ( diagnostic, f) ;
13671367 }
0 commit comments