update std::fmt::FormatError to std::fmt::Error