summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/opt.rs1
-rw-r--r--src/reader.rs4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/opt.rs b/src/opt.rs
index 3548127..9704d4f 100644
--- a/src/opt.rs
+++ b/src/opt.rs
@@ -29,4 +29,3 @@ pub struct Opt {
#[structopt(required = true, min_values = 1, parse(try_from_str = Config::parse_choice))]
pub choice: Vec<Choice>,
}
-
diff --git a/src/reader.rs b/src/reader.rs
index b90097c..06349b7 100644
--- a/src/reader.rs
+++ b/src/reader.rs
@@ -6,7 +6,9 @@ pub struct BufReader<R> {
impl<R: Read> BufReader<R> {
pub fn new(f: R) -> Self {
- Self { reader: io::BufReader::new(f) }
+ Self {
+ reader: io::BufReader::new(f),
+ }
}
pub fn read_line<'buf>(