Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anishathalye committed Sep 11, 2021
1 parent ffb1a29 commit 0a51be6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/blinkfill/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ where
// enforce the precondition of Dag::learn that the indices of the examples correspond to the
// indices used in constructing the graph (so all unpaired has to be examples concatenated with
// the unpaired, in that order)
let unpaired: Vec<Vec<&str>> = unpaired
let unpaired = unpaired
.iter()
.map(|row| row.iter().map(|x| x.as_ref()).collect())
.collect();
.map(|row| row.iter().map(|x| x.as_ref()).collect());
let examples: Vec<(Vec<&str>, &str)> = examples
.iter()
.map(|(row, output)| (row.iter().map(|x| x.as_ref()).collect(), output.as_ref()))
Expand Down

0 comments on commit 0a51be6

Please sign in to comment.