mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
use explicit dyn with Write to appease compiler
This commit is contained in:
1 parent
21821f1d4c
commit
28266ee441
3 files changed
+13
-13
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user