Use bon for entry builder #38
No reviewers
Labels
No labels
breaking
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
worm-blossom/willow_rs!38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "aecsocket/willow_rs:feat/bon"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Removes
willow_data_model'sEntryBuilderand makes it derived byboninstead. Keeps the custom methods likepayload,async_payload. Adjustswillow25'sEntryBuilderto match.I'm not a fan of how willow25 wraps the EntryBuilder, since it means we have to manually redefine the builder setter fns, but I don't think there's much we can do.
The
payloadandpayload_asyncfns convert a usize to a u64 byas-casting, which is potentially dangerous. I've kept it in but as a panickingu64::try_from().expect- imo these fns should returnResults.PR looks good, I'm happy to merge this after seeing all tests pass =)
Opened a dedicated issue for this one: #40
@aecsocket there are a bunch of doc tests that now fail, could you fix those?
7d9bc63336to175fafe89bFixed doctests
Nice, thank you. Looks good now!