diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-09 00:12:16 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-09 00:12:16 -0800 |
commit | 5dca65fa0992bedb826aa7a762dc69e1beaed2de (patch) | |
tree | 2f736147f38543632ec2c2135fc48d382f727ec0 /rust/src/bin | |
parent | 9979d34df0cdef3be2fb40b6da4c4eaddeb5ba79 (diff) | |
download | fatcat-5dca65fa0992bedb826aa7a762dc69e1beaed2de.tar.gz fatcat-5dca65fa0992bedb826aa7a762dc69e1beaed2de.zip |
some clippy nits
Diffstat (limited to 'rust/src/bin')
-rw-r--r-- | rust/src/bin/fatcat-export.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rust/src/bin/fatcat-export.rs b/rust/src/bin/fatcat-export.rs index 889d7dff..157070e5 100644 --- a/rust/src/bin/fatcat-export.rs +++ b/rust/src/bin/fatcat-export.rs @@ -1,5 +1,8 @@ //! JSON Export Helper +// using closures as a Result/? hack +#![allow(clippy::redundant_closure_call)] + #[macro_use] extern crate clap; #[macro_use] @@ -100,7 +103,7 @@ fn loop_printer( let mut buf_output = BufWriter::new(output); for line in output_receiver { buf_output.write_all(&line.into_bytes())?; - buf_output.write(b"\n")?; + buf_output.write_all(b"\n")?; buf_output.flush()?; } drop(done_sender); @@ -108,7 +111,7 @@ fn loop_printer( } fn parse_line(s: &str) -> Result<IdentRow> { - let fields: Vec<String> = s.split("\t").map(|v| v.to_string()).collect(); + let fields: Vec<String> = s.split('\t').map(|v| v.to_string()).collect(); if fields.len() != 3 { bail!("Invalid input line"); } |