diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2019-03-27 22:27:47 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2019-03-27 22:27:47 +0200 |
| commit | 5fa18412ffe60b66221bc2bebe2577654fe6fb4f (patch) | |
| tree | 3d825bf656fe1565408a9bc387be8832302275f6 | |
| parent | 72fac16e7ec111293dd3fd424d40fff6a867622f (diff) | |
| download | csvre-5fa18412ffe60b66221bc2bebe2577654fe6fb4f.tar.gz csvre-5fa18412ffe60b66221bc2bebe2577654fe6fb4f.zip | |
Reformat
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index b4c930b..015acd6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -213,12 +213,14 @@ fn run() -> Result<(), MyError> { Ok(n) => n, Err(_) => { if args.flag_bytes { - reader.byte_headers()? + reader + .byte_headers()? .iter() .position(|x| x == column_str.as_bytes()) .ok_or(MyError::ColumnNotFound)? } else { - reader.headers()? + reader + .headers()? .iter() .position(|x| x == column_str) .ok_or(MyError::ColumnNotFound)? |
