forked from colin-kiegel/rust-derive-builder
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Break out distribute_and_unnest_attrs
Replaces two copies of the same code, in Field::unnest_attrs and Options::unnest_attrs. Also, replaces the double specification of the output attributes list variables in each of these functions (once when calculating unnest, and once when copying the fields to every output). Discussion was here, et seq: colin-kiegel#241 (comment)
- Loading branch information
Showing
1 changed file
with
49 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters