prompt_graph_core/utils/wasm_error.rs
1use std::ops::{Deref, DerefMut};
2
3#[derive(Debug)]
4pub struct CoreError(pub anyhow::Error);
5
6impl Deref for CoreError {
7 type Target = anyhow::Error;
8
9 fn deref(&self) -> &Self::Target {
10 &self.0
11 }
12}
13
14impl DerefMut for CoreError {
15 fn deref_mut(&mut self) -> &mut Self::Target {
16 &mut self.0
17 }
18}