You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The best solution is to return Result from C::encode and C::decode as outlined in #152 and appropriately handle them in TypedStore - probably return Option<Result<_, _>>.
The text was updated successfully, but these errors were encountered:
rnbguy
changed the title
TypedStore should .unwrap() the result from C::decodeTypedStore should .unwrap() the return value from C::decodeJan 26, 2024
The following
Options
(indicates failure to decode) are subsumed by parentOption
from.set
/.get
` (indicates unset path in the store)basecoin-rs/crates/store/src/types/store.rs
Line 56 in dc3b43a
basecoin-rs/crates/store/src/types/store.rs
Line 68 in dc3b43a
The
C::encode
calls are correctly.unwrap
-ed in the same file.basecoin-rs/crates/store/src/types/store.rs
Line 54 in dc3b43a
basecoin-rs/crates/store/src/types/store.rs
Line 90 in dc3b43a
The best solution is to return
Result
fromC::encode
andC::decode
as outlined in #152 and appropriately handle them inTypedStore
- probably returnOption<Result<_, _>>
.The text was updated successfully, but these errors were encountered: