Skip to content

Commit

Permalink
cli: use BufReader instead of Reader
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryVixen899 authored Sep 12, 2023
1 parent 9d27be7 commit b02723b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/boon.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{env, error::Error, fs::File, process, str::FromStr};
use std::{env, error::Error, fs::File, io::BufReader, process, str::FromStr};

use boon::{Compiler, Draft, Schemas, UrlLoader};
use getopts::Options;
Expand Down Expand Up @@ -104,7 +104,7 @@ fn main() {
println!();
}
let rdr = match File::open(instance) {
Ok(rdr) => rdr,
Ok(rdr) => BufReader::new(rdr),
Err(e) => {
println!("instance {instance}: failed");
if !quiet {
Expand Down

0 comments on commit b02723b

Please sign in to comment.