mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-19 04:21:06 +00:00
Remove leftover unwrap
This commit is contained in:
parent
33a89410d4
commit
72e1a40bab
@ -79,11 +79,10 @@ impl<'b> Controller<'b> {
|
|||||||
clircle::Identifier::stdout()
|
clircle::Identifier::stdout()
|
||||||
};
|
};
|
||||||
|
|
||||||
//let writer = output_type.handle()?;
|
let mut writer = match output_buffer {
|
||||||
let mut writer = output_buffer.map_or_else(
|
Some(buf) => OutputHandle::FmtWrite(buf),
|
||||||
|| OutputHandle::IoWrite(output_type.handle().unwrap()),
|
None => OutputHandle::IoWrite(output_type.handle()?),
|
||||||
|buf| OutputHandle::FmtWrite(buf),
|
};
|
||||||
);
|
|
||||||
let mut no_errors: bool = true;
|
let mut no_errors: bool = true;
|
||||||
let stderr = io::stderr();
|
let stderr = io::stderr();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user