We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 229285b + 28447c9 commit 48f90fdCopy full SHA for 48f90fd
rust/src/error.rs
@@ -130,6 +130,9 @@ impl std::fmt::Display for DeserializeError {
130
}
131
132
133
+#[cfg(not(all(target_arch = "wasm32", not(target_os = "emscripten"))))]
134
+impl std::error::Error for DeserializeError {}
135
+
136
impl From<DeserializeError> for JsError {
137
fn from(e: DeserializeError) -> JsError {
138
JsError::from_str(&e.to_string())
@@ -202,3 +205,6 @@ impl std::fmt::Display for JsError {
202
205
write!(f, "{}", self.msg)
203
206
204
207
208
209
210
+impl std::error::Error for JsError {}
0 commit comments