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.
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.