Skip to content

Commit

Permalink
Fix ambiguous flatten() for rust >=1.29.
Browse files Browse the repository at this point in the history
  • Loading branch information
psftw committed Jun 12, 2019
1 parent ca82b35 commit fdab95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn generate<P: AsRef<Path>>(spec: Specification, base_path: P) -> io::Result
(split[0].to_owned(), split[1].to_owned(), res_spec)
}).group_by(|&(ref service_name, _, _)| service_name.to_owned());

let property_groups = spec.property_types.into_iter().flatten().filter_map(|(prop_name, prop_spec)| {
let property_groups = Itertools::flatten(spec.property_types.into_iter()).filter_map(|(prop_name, prop_spec)| {
if prop_name.starts_with("AWS::") {
let split = prop_name[5..].split("::").collect::<Vec<_>>();
assert!(split.len() == 2);
Expand Down

0 comments on commit fdab95d

Please sign in to comment.