Closed JSAbrahams closed 5 years ago
We use unwrap in multiple locations in the code which is discouraged in production code.
Add extra assertion checks for debug, and use unimplemented! macro combined with 'unwrap_or_else'.
unimplemented!
In situations where we are absolutely sure we may use unreachable_checked.
unreachable_checked
Alternatively we can use expect
expect
Current issue
We use unwrap in multiple locations in the code which is discouraged in production code.
description of feature
Add extra assertion checks for debug, and use
unimplemented!
macro combined with 'unwrap_or_else'.In situations where we are absolutely sure we may use
unreachable_checked
.