1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-11 20:11:43 +00: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
+1 -1
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