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(
|
pub fn new_emitter(
|
||||||
self,
|
self,
|
||||||
mut dst: Box<dyn WriteColor + Send>,
|
mut dst: Destination,
|
||||||
fallback_bundle: LazyFallbackBundle,
|
fallback_bundle: LazyFallbackBundle,
|
||||||
) -> HumanEmitter {
|
) -> HumanEmitter {
|
||||||
let (short, color_config) = self.unzip();
|
let (short, color_config) = self.unzip();
|
||||||
|
@ -686,10 +686,7 @@ impl HumanEmitter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn new(
|
pub fn new(dst: Destination, fallback_bundle: LazyFallbackBundle) -> HumanEmitter {
|
||||||
dst: Box<dyn WriteColor + Send>,
|
|
||||||
fallback_bundle: LazyFallbackBundle,
|
|
||||||
) -> HumanEmitter {
|
|
||||||
Self::create(dst, fallback_bundle)
|
Self::create(dst, fallback_bundle)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2634,7 +2631,7 @@ fn emit_to_destination(
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type Destination = Box<(dyn WriteColor + Send)>;
|
pub type Destination = Box<dyn WriteColor + Send>;
|
||||||
|
|
||||||
struct Buffy {
|
struct Buffy {
|
||||||
buffer_writer: BufferWriter,
|
buffer_writer: BufferWriter,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue