pub fn format_error(f: &mut Formatter<'_>, err: &Error) -> Result