humansize icon indicating copy to clipboard operation
humansize copied to clipboard

Result not implementing Error trait

Open modulated opened this issue 3 years ago • 0 comments

The function file_size outputs Result<String, String> which does not play nicely with the ? operator when used within functions that depend on the std::error::Error trait.

Would there be any consideration for making the function return a Result<String, T: Error> type?

modulated avatar Sep 21 '21 03:09 modulated