Skip to content

Commit

Permalink
Merge pull request #27 from FabioBatSilva/nightly-2019-06-14
Browse files Browse the repository at this point in the history
Upgrade to nightly-2019-06-14
  • Loading branch information
FabioBatSilva authored Jun 15, 2019
2 parents 4135122 + c86e601 commit fdce5f3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: rust
cache: cargo
rust:
- nightly-2019-04-26
- nightly-2019-06-14

env:
global:
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2019-04-26
nightly-2019-06-14
2 changes: 1 addition & 1 deletion src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ pub(in crate) mod tests {

#[allow(clippy::borrowed_box)]
fn write_simple_row_group(
row_group_writer: &mut Box<RowGroupWriter>,
row_group_writer: &mut Box<dyn RowGroupWriter>,
vec: &[SimpleMessage],
) {
write_next_col_writer!(row_group_writer, Int32ColumnWriter, vec, |m| {
Expand Down
6 changes: 3 additions & 3 deletions src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fn format_row(
}

fn write_tabular<W: Write>(
values: &mut Iterator<Item = Result<Vec<String>>>,
values: &mut dyn Iterator<Item = Result<Vec<String>>>,
config: &OutputConfig,
headers: &[String],
out: &mut W,
Expand All @@ -90,7 +90,7 @@ fn write_tabular<W: Write>(
}

fn write_vertical<W: Write>(
values: &mut Iterator<Item = Result<Vec<String>>>,
values: &mut dyn Iterator<Item = Result<Vec<String>>>,
config: &OutputConfig,
headers: &[String],
out: &mut W,
Expand Down Expand Up @@ -119,7 +119,7 @@ fn write_vertical<W: Write>(
}

fn write_csv<W: Write>(
values: &mut Iterator<Item = Result<Vec<String>>>,
values: &mut dyn Iterator<Item = Result<Vec<String>>>,
config: &OutputConfig,
headers: &[String],
out: &mut W,
Expand Down
4 changes: 2 additions & 2 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fn get_row_filters(
.map(|t| ((t.1).1.to_lowercase(), t.0))
.collect::<HashMap<_, _>>();

for (field, regex) in filter_map.into_iter() {
for (field, regex) in filter_map.iter() {
if let Some(index) = field_map.get(&field.to_lowercase()) {
result.insert(*index, regex.clone());
}
Expand Down Expand Up @@ -272,7 +272,7 @@ where
}

fn next_row(
iter: &mut Iterator<Item = Row>,
iter: &mut dyn Iterator<Item = Row>,
fields: &[(usize, String)],
filters: &Option<HashMap<usize, Regex>>,
) -> Option<Result<Vec<String>>> {
Expand Down

0 comments on commit fdce5f3

Please sign in to comment.