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
There was no way to assert that an option value is None, so I add
is_none which returns true if the value is None. Rust seems to have
decided against unwrap_none, so I will not go down that path.
rust-lang/rust#62633
assert!(is_none(x)) might produce slightly larger Simplicity expressions
than a hypothetical unwrap_none(x), but I will not try to prematurely
optimize any Simplicity code here. A future version of the Simfony
compiler might detect assert! + is_none and produce an optimized
Simplicity expression accordingly.
0 commit comments