File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
compiler/rustc_errors/src Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ impl HumanReadableErrorType {
6060 }
6161 pub fn new_emitter (
6262 self ,
63- mut dst : Box < dyn WriteColor + Send > ,
63+ mut dst : Destination ,
6464 fallback_bundle : LazyFallbackBundle ,
6565 ) -> HumanEmitter {
6666 let ( short, color_config) = self . unzip ( ) ;
@@ -686,10 +686,7 @@ impl HumanEmitter {
686686 }
687687 }
688688
689- pub fn new (
690- dst : Box < dyn WriteColor + Send > ,
691- fallback_bundle : LazyFallbackBundle ,
692- ) -> HumanEmitter {
689+ pub fn new ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
693690 Self :: create ( dst, fallback_bundle)
694691 }
695692
@@ -2634,7 +2631,7 @@ fn emit_to_destination(
26342631 Ok ( ( ) )
26352632}
26362633
2637- pub type Destination = Box < ( dyn WriteColor + Send ) > ;
2634+ pub type Destination = Box < dyn WriteColor + Send > ;
26382635
26392636struct Buffy {
26402637 buffer_writer : BufferWriter ,
You can’t perform that action at this time.
0 commit comments