use explicit dyn with Write to appease compiler

This commit is contained in:
Wild Kat authored and David Peter committed 2019-08-02 18:50:55 +02:00
1 parent 21821f1d4c
commit 28266ee441
3 files changed
+13 -13

No files matched your search

+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