Make Error use NonZero for its value
Closed this issue · 2 comments
Darksonn commented
Currently, the type Result<(), Error>
takes up twice the size that it needs to. By changing the type inside Error
to be the appropriate NonZero*
type will make the niche optimization apply to reduce the size.
Related to #195.
felipeagger commented
I will work on it.