@@ -61,13 +61,13 @@ impl HumanReadableErrorType {
6161 self ,
6262 mut dst : Box < dyn WriteColor + Send > ,
6363 fallback_bundle : LazyFallbackBundle ,
64- ) -> EmitterWriter {
64+ ) -> HumanEmitter {
6565 let ( short, color_config) = self . unzip ( ) ;
6666 let color = color_config. suggests_using_colors ( ) ;
6767 if !dst. supports_color ( ) && color {
6868 dst = Box :: new ( Ansi :: new ( dst) ) ;
6969 }
70- EmitterWriter :: new ( dst, fallback_bundle) . short_message ( short)
70+ HumanEmitter :: new ( dst, fallback_bundle) . short_message ( short)
7171 }
7272}
7373
@@ -501,7 +501,7 @@ pub trait Emitter: Translate {
501501 }
502502}
503503
504- impl Translate for EmitterWriter {
504+ impl Translate for HumanEmitter {
505505 fn fluent_bundle ( & self ) -> Option < & Lrc < FluentBundle > > {
506506 self . fluent_bundle . as_ref ( )
507507 }
@@ -511,7 +511,7 @@ impl Translate for EmitterWriter {
511511 }
512512}
513513
514- impl Emitter for EmitterWriter {
514+ impl Emitter for HumanEmitter {
515515 fn source_map ( & self ) -> Option < & Lrc < SourceMap > > {
516516 self . sm . as_ref ( )
517517 }
@@ -622,7 +622,7 @@ impl ColorConfig {
622622
623623/// Handles the writing of `HumanReadableErrorType::Default` and `HumanReadableErrorType::Short`
624624#[ derive( Setters ) ]
625- pub struct EmitterWriter {
625+ pub struct HumanEmitter {
626626 #[ setters( skip) ]
627627 dst : IntoDynSyncSend < Destination > ,
628628 sm : Option < Lrc < SourceMap > > ,
@@ -647,14 +647,14 @@ pub struct FileWithAnnotatedLines {
647647 multiline_depth : usize ,
648648}
649649
650- impl EmitterWriter {
651- pub fn stderr ( color_config : ColorConfig , fallback_bundle : LazyFallbackBundle ) -> EmitterWriter {
650+ impl HumanEmitter {
651+ pub fn stderr ( color_config : ColorConfig , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
652652 let dst = from_stderr ( color_config) ;
653653 Self :: create ( dst, fallback_bundle)
654654 }
655655
656- fn create ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> EmitterWriter {
657- EmitterWriter {
656+ fn create ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
657+ HumanEmitter {
658658 dst : IntoDynSyncSend ( dst) ,
659659 sm : None ,
660660 fluent_bundle : None ,
@@ -673,7 +673,7 @@ impl EmitterWriter {
673673 pub fn new (
674674 dst : Box < dyn WriteColor + Send > ,
675675 fallback_bundle : LazyFallbackBundle ,
676- ) -> EmitterWriter {
676+ ) -> HumanEmitter {
677677 Self :: create ( dst, fallback_bundle)
678678 }
679679
0 commit comments