Print the error and turn Result into Option TODO: This is here because of refactoring, might want to remove this function
(something: EcResult<T>)
| 2033 | /// |
| 2034 | /// TODO: This is here because of refactoring, might want to remove this function |
| 2035 | pub fn print_err<T>(something: EcResult<T>) -> Option<T> { |
| 2036 | print_err_ref(&something); |
| 2037 | something.ok() |
| 2038 | } |
| 2039 | |
| 2040 | /// Which of the two EC images is currently in-use |
| 2041 | #[derive(PartialEq, Debug)] |
no test coverage detected