colin-kiegel / rust-derive-builder

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

enh: support infallible builders #324

Closed rbtcollins closed 4 months ago

rbtcollins commented 4 months ago

When builder(default) is in use, and no validation is present, the builder cannot fail - it would be nice to change the return type (probably explicitly, e.g. builder(default, infallible)) to reflect this, rather than having unwrap() in prod code, or colouring functions that can't otherwise fail.

TedDriggs commented 4 months ago

Duplicate of #293