fix(geo/haptics)!: specta version and feature flag (#2316)

This commit is contained in:
Fabian-Lars
2025-01-13 15:36:54 +01:00
committed by GitHub
parent da5c59e2fe
commit c9c13a0fe7
15 changed files with 59 additions and 144 deletions
+2 -2
View File
@@ -3,13 +3,13 @@
// SPDX-License-Identifier: MIT
use serde::{ser::Serializer, Serialize};
use specta::Type;
pub type Result<T> = std::result::Result<T, Error>;
// TODO: Improve Error handling (different typed errors instead of one (stringified) PluginInvokeError for all mobile errors)
#[derive(Debug, thiserror::Error, Type)]
#[derive(Debug, thiserror::Error)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub enum Error {
#[cfg(mobile)]
#[error(transparent)]