Skip to content

Commit

Permalink
fix: implement Error for MissingComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
ten3roberts committed Apr 7, 2024
1 parent d55f9dc commit 1f56e89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ impl Display for Error {
}
}

#[cfg(feature = "std")]
impl std::error::Error for MissingComponent {}

impl Display for MissingComponent {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(
Expand Down

0 comments on commit 1f56e89

Please sign in to comment.