|
@@ -147,8 +147,17 @@ pub enum Error {
|
|
UnstableFeatureNotSupported,
|
|
UnstableFeatureNotSupported,
|
|
/// Failed to deserialize scope object.
|
|
/// Failed to deserialize scope object.
|
|
#[error("error deserializing scope: {0}")]
|
|
#[error("error deserializing scope: {0}")]
|
|
- CannotDeserializeScope(Box<dyn std::error::Error + Send>),
|
|
|
|
|
|
+ CannotDeserializeScope(Box<dyn std::error::Error + Send + Sync>),
|
|
}
|
|
}
|
|
|
|
|
|
/// `Result<T, ::tauri::Error>`
|
|
/// `Result<T, ::tauri::Error>`
|
|
pub type Result<T> = std::result::Result<T, Error>;
|
|
pub type Result<T> = std::result::Result<T, Error>;
|
|
|
|
+
|
|
|
|
+#[cfg(test)]
|
|
|
|
+mod tests {
|
|
|
|
+ #[test]
|
|
|
|
+ fn error_is_send_sync() {
|
|
|
|
+ crate::test_utils::assert_send::<super::Error>();
|
|
|
|
+ crate::test_utils::assert_sync::<super::Error>();
|
|
|
|
+ }
|
|
|
|
+}
|