Improve fmt::Display impl for all Error types (#781)

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-02-10 14:01:22 +11:00 committed by GitHub
parent 9d9b72c768
commit d9dd611b9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 17 deletions

View file

@ -181,13 +181,13 @@ impl CratesToml<'_> {
#[derive(Debug, Diagnostic, Error)]
#[non_exhaustive]
pub enum CratesTomlParseError {
#[error(transparent)]
#[error("I/O Error: {0}")]
Io(#[from] io::Error),
#[error(transparent)]
#[error("Failed to deserialize toml: {0}")]
TomlParse(Box<toml_edit::de::Error>),
#[error(transparent)]
#[error("Failed to serialie toml: {0}")]
TomlWrite(Box<toml_edit::ser::Error>),
#[error(transparent)]