Use Destination
more.
This commit is contained in:
parent
869bd03a04
commit
3c3f15cafe
1 changed files with 3 additions and 6 deletions
|
@ -60,7 +60,7 @@ impl HumanReadableErrorType {
|
|||
}
|
||||
pub fn new_emitter(
|
||||
self,
|
||||
mut dst: Box<dyn WriteColor + Send>,
|
||||
mut dst: Destination,
|
||||
fallback_bundle: LazyFallbackBundle,
|
||||
) -> HumanEmitter {
|
||||
let (short, color_config) = self.unzip();
|
||||
|
@ -686,10 +686,7 @@ impl HumanEmitter {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(
|
||||
dst: Box<dyn WriteColor + Send>,
|
||||
fallback_bundle: LazyFallbackBundle,
|
||||
) -> HumanEmitter {
|
||||
pub fn new(dst: Destination, fallback_bundle: LazyFallbackBundle) -> HumanEmitter {
|
||||
Self::create(dst, fallback_bundle)
|
||||
}
|
||||
|
||||
|
@ -2634,7 +2631,7 @@ fn emit_to_destination(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub type Destination = Box<(dyn WriteColor + Send)>;
|
||||
pub type Destination = Box<dyn WriteColor + Send>;
|
||||
|
||||
struct Buffy {
|
||||
buffer_writer: BufferWriter,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue