Skip to content

Commit

Permalink
test error
Browse files Browse the repository at this point in the history
  • Loading branch information
meskill committed Apr 25, 2023
1 parent 8ab23f1 commit 663e436
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 663e436

Please sign in to comment.