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 {
60
60
}
61
61
pub fn new_emitter (
62
62
self ,
63
- mut dst : Box < dyn WriteColor + Send > ,
63
+ mut dst : Destination ,
64
64
fallback_bundle : LazyFallbackBundle ,
65
65
) -> HumanEmitter {
66
66
let ( short, color_config) = self . unzip ( ) ;
@@ -686,10 +686,7 @@ impl HumanEmitter {
686
686
}
687
687
}
688
688
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 {
693
690
Self :: create ( dst, fallback_bundle)
694
691
}
695
692
@@ -2634,7 +2631,7 @@ fn emit_to_destination(
2634
2631
Ok ( ( ) )
2635
2632
}
2636
2633
2637
- pub type Destination = Box < ( dyn WriteColor + Send ) > ;
2634
+ pub type Destination = Box < dyn WriteColor + Send > ;
2638
2635
2639
2636
struct Buffy {
2640
2637
buffer_writer : BufferWriter ,
You can’t perform that action at this time.
0 commit comments