1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-17 02:32:26 +01:00

use explicit dyn with Write to appease compiler

This commit is contained in:
Wild Kat
2019-08-02 09:14:57 +02:00
committed by David Peter
parent 21821f1d4c
commit 28266ee441
3 changed files with 13 additions and 13 deletions

View File

@@ -98,7 +98,7 @@ impl OutputType {
OutputType::Stdout(io::stdout())
}
pub fn handle(&mut self) -> Result<&mut Write> {
pub fn handle(&mut self) -> Result<&mut dyn Write> {
Ok(match *self {
OutputType::Pager(ref mut command) => command
.stdin