humansize icon indicating copy to clipboard operation
humansize copied to clipboard

Please provide an infallible version for only unsigned values

Open joshtriplett opened this issue 3 years ago • 0 comments

file_size returns a Result, but as far as I can tell the only case where it can actually return Err is if given a negative number. It'd be convenient to treat the method as infallible for the common case of calling it on an unsigned number. Please consider providing an infallible method exclusively on unsigned types.

joshtriplett avatar Oct 31 '21 11:10 joshtriplett