pub fn ignore_eof_error<'de, T, D>(result: Result<T, D>) -> Result<T, D>where T: Deserialize<'de> + Default, D: Display,