Rust-for-Linux/linux

Make Error use NonZero for its value

Closed this issue · 2 comments

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.

I will work on it.