Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend push_auto_trait_impl to built-in types #612

Merged
merged 14 commits into from
Sep 19, 2020
Prev Previous commit
Next Next commit
Use flat_map(...) instead of map(...).flatten()
  • Loading branch information
memoryleak47 committed Sep 18, 2020
commit 85f93c97e78f9cde94cc06f8c47bfb2a032215b4
3 changes: 1 addition & 2 deletions chalk-solve/src/clauses.rs
Original file line number Diff line number Diff line change
@@ -31,8 +31,7 @@ fn consistuent_types<I: Interner>(
adt_datum_bound
.variants
.into_iter()
.map(|variant| variant.fields.into_iter())
.flatten()
.flat_map(|variant| variant.fields.into_iter())
.collect()
}
TypeName::Array