From e232a0af14c3e9e08903acd5b1cc0fa13c2295d6 Mon Sep 17 00:00:00 2001 From: meskill <8974488+meskill@users.noreply.github.com> Date: Mon, 24 Apr 2023 20:48:55 +0000 Subject: [PATCH] test error --- lib/api/src/errors.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/api/src/errors.rs b/lib/api/src/errors.rs index a216cdda459..b8ec3227e37 100644 --- a/lib/api/src/errors.rs +++ b/lib/api/src/errors.rs @@ -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") + } +} \ No newline at end of file