//! Custom error type for both I/O and formatting strings errors.
usestd::{fmt, io};usethiserror::Error;/// Custom error type for both I/O and formatting errors.
#[derive(Debug, Error)]pubenumError{#[error("I/O error: {0}")]
Io(#[from]io::Error),#[error("Formatting error: {0}")]
Fmt(#[from]fmt::Error),}