File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ use crate::gen::fs;
22use crate :: syntax;
33use codespan_reporting:: diagnostic:: { Diagnostic , Label } ;
44use codespan_reporting:: files:: SimpleFiles ;
5- use codespan_reporting:: term:: termcolor:: { ColorChoice , StandardStream , WriteColor } ;
6- use codespan_reporting:: term:: { self , Config } ;
5+ use codespan_reporting:: term:: termcolor:: { ColorChoice , StandardStream } ;
6+ use codespan_reporting:: term:: { self , Config , WriteStyle } ;
77use std:: borrow:: Cow ;
88use std:: error:: Error as StdError ;
99use std:: fmt:: { self , Display } ;
@@ -111,7 +111,7 @@ fn sort_syn_errors(error: syn::Error) -> Vec<syn::Error> {
111111 errors
112112}
113113
114- fn display_syn_error ( stderr : & mut dyn WriteColor , path : & Path , source : & str , error : syn:: Error ) {
114+ fn display_syn_error ( stderr : & mut dyn WriteStyle , path : & Path , source : & str , error : syn:: Error ) {
115115 let span = error. span ( ) ;
116116 let start = span. start ( ) ;
117117 let end = span. end ( ) ;
You can’t perform that action at this time.
0 commit comments