failure
failure copied to clipboard
Rework ResultExt to have err_msg like method
Right now the ResultExt trait requires the bound E: Fail, but can this bound be moved to individual methods? Would anyone else enjoy a method equivalent to |e| { e.map_err(|_| err_msg("message")) } to construct an Error easily out of any Result type.
Can you give more context about the code you want to write and the API change you want? I'm having some trouble following :)