File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -936,17 +936,17 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
936936 Some ( "human" ) => ErrorOutputType :: HumanReadable ( color) ,
937937 Some ( "json" ) => ErrorOutputType :: Json ,
938938
939- None => ErrorOutputType :: default ( ) ,
939+ None => ErrorOutputType :: HumanReadable ( color ) ,
940940
941941 Some ( arg) => {
942- early_error ( ErrorOutputType :: default ( ) , & format ! ( "argument for --error-format must \
943- be human or json (instead was \
944- `{}`)",
945- arg) )
942+ early_error ( ErrorOutputType :: HumanReadable ( color ) ,
943+ & format ! ( "argument for --error-format must be human or json (instead \
944+ was `{}`)",
945+ arg) )
946946 }
947947 }
948948 } else {
949- ErrorOutputType :: default ( )
949+ ErrorOutputType :: HumanReadable ( color )
950950 } ;
951951
952952 let unparsed_crate_types = matches. opt_strs ( "crate-type" ) ;
You can’t perform that action at this time.
0 commit comments