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:
@@ -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