summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Geary <rtgnj42@gmail.com>2020-03-17 13:44:14 -0400
committerRyan Geary <rtgnj42@gmail.com>2020-03-17 13:44:14 -0400
commita90a5cb74273eba36357a25096e4bd7840d19cb8 (patch)
tree82062d0bdeeb5caabda7d875b5d3638c03afc964
parent41e060680ea153fa8f245efc53f870bbb80faf89 (diff)
Cargo fmt
-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>(