humansize
humansize copied to clipboard
Result not implementing Error trait
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?