-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Result<Option<>> rather than Option<Option<>> #9119
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a good idea, but needs a bit more work before it's ready.
(I came across an ICE when coding this - but rust-lang/rust#86368 fixes it and should be in nightly soon) |
@gilescope what public runtime APIs does this break? |
@shawntabrizi in primitives/runtime/src/offchain/storage.rs these are the breaking changes:
They make the api easier to understand. |
Hmm, think I need to rebase. |
ddd464c
to
d41a782
Compare
@bkchr can I get an approve from you and can I get an A6-mustntgrumble from you @coriolinus ? |
Meme driven development: You are using a three state enum rather than Option<Option<>> right? right???
Edit: No, we're going to use Result<Option<>>