Skip to content

Commit

Permalink
Use new BTreeMap::into_values
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnavion committed Jul 29, 2021
1 parent e53ba40 commit 48c49e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s-openapi-codegen-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ pub fn run(
}
}

*operations = operations_by_gkv.into_iter().flat_map(|(_, operations)| operations).collect();
*operations = operations_by_gkv.into_values().flatten().collect();
}

match &**definition_path {
Expand Down

0 comments on commit 48c49e5

Please sign in to comment.