Skip to content

Commit

Permalink
test error
Browse files Browse the repository at this point in the history
  • Loading branch information
meskill committed Apr 24, 2023
1 parent 6ff5386 commit e232a0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/api/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ pub enum InstantiationError {
#[cfg_attr(feature = "std", error("incorrect OS or architecture"))]
DifferentArchOS,
}

#[cfg(feature = "core")]
impl std::fmt::Display for InstantiationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InstantiationError")
}
}

0 comments on commit e232a0a

Please sign in to comment.