Merge sync_lib and sync_wasm
This commit is contained in:
parent
dfb747c206
commit
a2a4611497
9 changed files with 134 additions and 58 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use base64::DecodeError;
|
||||
use thiserror::Error;
|
||||
use wasm_bindgen::JsValue;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum SyncLibError {
|
||||
|
|
@ -22,3 +23,7 @@ impl From<std::string::FromUtf8Error> for SyncLibError {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<SyncLibError> for JsValue {
|
||||
fn from(val: SyncLibError) -> Self { JsValue::from_str(&val.to_string()) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue