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