Closed mlafeldt closed 2 years ago
I'm not sure but this might be due to the error setting in build_fn(name = "build_impl", private, error = "never::Never")
.
This was already reported in #86 and fixed in #122. It was just not released yet.
Ah, perfect! Looking forward to a new release then. 😄
Hey,
First of all, thank you very much for this awesome crate. It works really well. 🎉
One thing I don't understand, however, is why all builders return
Result<T, String>
instead ofResult<T, Error>
for thebuild
method.That's not the default behavior of
derive_builder
and it makes for some weird code where e.g.GuidBuilder::default().value(...).build().unwrap()
will return an empty String in case of an error. Same forItemBuilder
etc.