`unwrap_or_revert_with` should accept module as argument
zie1ony opened this issue · comments
At the moment the way to panic when unwrapping is:
unwrap_or_revert_with(&self.env(), Overflow)
This creates a copy on env
, which most of the time is not used.
Instead it could accept Module
trait and get env
only when needed.
unwrap_or_revert_with(&self, Overflow)