Skip to content

Commit

Permalink
Use core::fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 26, 2024
1 parent 9760faf commit f140289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ pub enum Error {
UnknownDimension,
/// Wrapper around `[std::fmt::Error]`
#[error(transparent)]
FmtError(#[from] std::fmt::Error),
FmtError(#[from] core::fmt::Error),
}

impl From<Error> for fmt::Error {
fn from(value: Error) -> Self {
match value {
Error::FmtError(err) => err,
_ => std::fmt::Error,
_ => core::fmt::Error,
}
}
}

0 comments on commit f140289

Please sign in to comment.