mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-10 08:08:07 +02:00
Pass stdin as a generic BufRead, fix stdin tests
This commit is contained in:
@ -56,10 +56,8 @@ impl<'b> Controller<'b> {
|
||||
let writer = output_type.handle()?;
|
||||
let mut no_errors: bool = true;
|
||||
|
||||
let stdin = io::stdin();
|
||||
|
||||
for input_file in self.config.files.iter() {
|
||||
match input_file.get_reader(&stdin) {
|
||||
match input_file.get_reader(io::stdin().lock()) {
|
||||
Err(error) => {
|
||||
handle_error(&error);
|
||||
no_errors = false;
|
||||
|
Reference in New Issue
Block a user