Short version of `Err(error("..."))`.
(msg: &'static str)
| 4 | |
| 5 | /// Short version of `Err(error("..."))`. |
| 6 | pub fn err<T>(msg: &'static str) -> Result<T, Error> { |
| 7 | Err(error(msg)) |
| 8 | } |
| 9 | |
| 10 | /// Creates an error with a message that might be displayed. |
| 11 | pub fn error(_msg: &'static str) -> Error { |
no test coverage detected