@@ -61,13 +61,13 @@ impl HumanReadableErrorType {
61
61
self ,
62
62
mut dst : Box < dyn WriteColor + Send > ,
63
63
fallback_bundle : LazyFallbackBundle ,
64
- ) -> EmitterWriter {
64
+ ) -> HumanEmitter {
65
65
let ( short, color_config) = self . unzip ( ) ;
66
66
let color = color_config. suggests_using_colors ( ) ;
67
67
if !dst. supports_color ( ) && color {
68
68
dst = Box :: new ( Ansi :: new ( dst) ) ;
69
69
}
70
- EmitterWriter :: new ( dst, fallback_bundle) . short_message ( short)
70
+ HumanEmitter :: new ( dst, fallback_bundle) . short_message ( short)
71
71
}
72
72
}
73
73
@@ -501,7 +501,7 @@ pub trait Emitter: Translate {
501
501
}
502
502
}
503
503
504
- impl Translate for EmitterWriter {
504
+ impl Translate for HumanEmitter {
505
505
fn fluent_bundle ( & self ) -> Option < & Lrc < FluentBundle > > {
506
506
self . fluent_bundle . as_ref ( )
507
507
}
@@ -511,7 +511,7 @@ impl Translate for EmitterWriter {
511
511
}
512
512
}
513
513
514
- impl Emitter for EmitterWriter {
514
+ impl Emitter for HumanEmitter {
515
515
fn source_map ( & self ) -> Option < & Lrc < SourceMap > > {
516
516
self . sm . as_ref ( )
517
517
}
@@ -622,7 +622,7 @@ impl ColorConfig {
622
622
623
623
/// Handles the writing of `HumanReadableErrorType::Default` and `HumanReadableErrorType::Short`
624
624
#[ derive( Setters ) ]
625
- pub struct EmitterWriter {
625
+ pub struct HumanEmitter {
626
626
#[ setters( skip) ]
627
627
dst : IntoDynSyncSend < Destination > ,
628
628
sm : Option < Lrc < SourceMap > > ,
@@ -647,14 +647,14 @@ pub struct FileWithAnnotatedLines {
647
647
multiline_depth : usize ,
648
648
}
649
649
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 {
652
652
let dst = from_stderr ( color_config) ;
653
653
Self :: create ( dst, fallback_bundle)
654
654
}
655
655
656
- fn create ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> EmitterWriter {
657
- EmitterWriter {
656
+ fn create ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
657
+ HumanEmitter {
658
658
dst : IntoDynSyncSend ( dst) ,
659
659
sm : None ,
660
660
fluent_bundle : None ,
@@ -673,7 +673,7 @@ impl EmitterWriter {
673
673
pub fn new (
674
674
dst : Box < dyn WriteColor + Send > ,
675
675
fallback_bundle : LazyFallbackBundle ,
676
- ) -> EmitterWriter {
676
+ ) -> HumanEmitter {
677
677
Self :: create ( dst, fallback_bundle)
678
678
}
679
679
0 commit comments