mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
fix: geolocation and haptics plugin build fails with specta feature on
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
haptics: patch
|
||||||
|
geolocation: patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixed a build failure when the `specta` feature is enabled: the `Error` type used the `#[serde(skip)]` helper attribute, which recent `specta` versions no longer register. It now uses `#[specta(skip)]`.
|
||||||
@@ -14,7 +14,7 @@ pub enum Error {
|
|||||||
#[cfg(mobile)]
|
#[cfg(mobile)]
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
PluginInvoke(
|
PluginInvoke(
|
||||||
#[cfg_attr(feature = "specta", serde(skip))]
|
#[cfg_attr(feature = "specta", specta(skip))]
|
||||||
#[from]
|
#[from]
|
||||||
tauri::plugin::mobile::PluginInvokeError,
|
tauri::plugin::mobile::PluginInvokeError,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ pub enum Error {
|
|||||||
#[cfg(mobile)]
|
#[cfg(mobile)]
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
PluginInvoke(
|
PluginInvoke(
|
||||||
#[cfg_attr(feature = "specta", serde(skip))]
|
#[cfg_attr(feature = "specta", specta(skip))]
|
||||||
#[from]
|
#[from]
|
||||||
tauri::plugin::mobile::PluginInvokeError,
|
tauri::plugin::mobile::PluginInvokeError,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user