#[cfg(not(feature = "std"))]
use alloc::string::String;
use thiserror::Error;
pub type Result<T> = core::result::Result<T, GadgetIoError>;
#[derive(Debug, Error)]
pub enum GadgetIoError {
#[error("{0}")]
Other(String),
}
impl From<String> for GadgetIoError {
fn from(s: String) -> Self {
GadgetIoError::Other(s)
}
}