colin-kiegel / rust-derive-builder

derive builder implementation for rust structs
https://colin-kiegel.github.io/rust-derive-builder/
Apache License 2.0
1.28k stars 82 forks source link

Refactor visibility options with #[darling(flatten)] #312

Closed TedDriggs closed 6 months ago

TedDriggs commented 6 months ago

This reduces code duplication and makes it impossible for the options structs to see an invalid visibility state.