@@ -69,7 +69,7 @@ impl NarratableReportHandler {
6969 pub fn render_report (
7070 & self ,
7171 f : & mut impl fmt:: Write ,
72- diagnostic : & ( dyn Diagnostic ) ,
72+ diagnostic : & dyn Diagnostic ,
7373 ) -> fmt:: Result {
7474 self . render_header ( f, diagnostic) ?;
7575 if self . with_cause_chain {
@@ -85,7 +85,7 @@ impl NarratableReportHandler {
8585 Ok ( ( ) )
8686 }
8787
88- fn render_header ( & self , f : & mut impl fmt:: Write , diagnostic : & ( dyn Diagnostic ) ) -> fmt:: Result {
88+ fn render_header ( & self , f : & mut impl fmt:: Write , diagnostic : & dyn Diagnostic ) -> fmt:: Result {
8989 writeln ! ( f, "{}" , diagnostic) ?;
9090 let severity = match diagnostic. severity ( ) {
9191 Some ( Severity :: Error ) | None => "error" ,
@@ -96,7 +96,7 @@ impl NarratableReportHandler {
9696 Ok ( ( ) )
9797 }
9898
99- fn render_causes ( & self , f : & mut impl fmt:: Write , diagnostic : & ( dyn Diagnostic ) ) -> fmt:: Result {
99+ fn render_causes ( & self , f : & mut impl fmt:: Write , diagnostic : & dyn Diagnostic ) -> fmt:: Result {
100100 if let Some ( cause_iter) = diagnostic
101101 . diagnostic_source ( )
102102 . map ( DiagnosticChain :: from_diagnostic)
@@ -110,7 +110,7 @@ impl NarratableReportHandler {
110110 Ok ( ( ) )
111111 }
112112
113- fn render_footer ( & self , f : & mut impl fmt:: Write , diagnostic : & ( dyn Diagnostic ) ) -> fmt:: Result {
113+ fn render_footer ( & self , f : & mut impl fmt:: Write , diagnostic : & dyn Diagnostic ) -> fmt:: Result {
114114 if let Some ( help) = diagnostic. help ( ) {
115115 writeln ! ( f, "diagnostic help: {}" , help) ?;
116116 }
@@ -126,7 +126,7 @@ impl NarratableReportHandler {
126126 fn render_related (
127127 & self ,
128128 f : & mut impl fmt:: Write ,
129- diagnostic : & ( dyn Diagnostic ) ,
129+ diagnostic : & dyn Diagnostic ,
130130 parent_src : Option < & dyn SourceCode > ,
131131 ) -> fmt:: Result {
132132 if let Some ( related) = diagnostic. related ( ) {
@@ -152,7 +152,7 @@ impl NarratableReportHandler {
152152 fn render_snippets (
153153 & self ,
154154 f : & mut impl fmt:: Write ,
155- diagnostic : & ( dyn Diagnostic ) ,
155+ diagnostic : & dyn Diagnostic ,
156156 source_code : Option < & dyn SourceCode > ,
157157 ) -> fmt:: Result {
158158 if let Some ( source) = source_code {
@@ -344,7 +344,7 @@ impl NarratableReportHandler {
344344}
345345
346346impl ReportHandler for NarratableReportHandler {
347- fn debug ( & self , diagnostic : & ( dyn Diagnostic ) , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
347+ fn debug ( & self , diagnostic : & dyn Diagnostic , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
348348 if f. alternate ( ) {
349349 return fmt:: Debug :: fmt ( diagnostic, f) ;
350350 }
0 commit comments