mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
fix(specta): don't use #[specta(rename = ...)] with tauri::ipc::Channel (#14812)
This commit is contained in:
5
.changes/change-pr-14812.md
Normal file
5
.changes/change-pr-14812.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
fix(specta): don't use `#[specta(rename = ...)]` with `tauri::ipc::Channel`
|
||||
@@ -54,9 +54,9 @@ pub struct Channel<TSend = InvokeResponseBody> {
|
||||
#[cfg(feature = "specta")]
|
||||
const _: () = {
|
||||
#[derive(specta::Type)]
|
||||
#[specta(remote = super::Channel, rename = "TAURI_CHANNEL")]
|
||||
#[allow(dead_code)]
|
||||
struct Channel<TSend>(std::marker::PhantomData<TSend>);
|
||||
#[specta(remote = super::Channel)]
|
||||
#[allow(dead_code, non_camel_case_types)]
|
||||
struct TAURI_CHANNEL<TSend>(std::marker::PhantomData<TSend>);
|
||||
};
|
||||
|
||||
impl<TSend> Clone for Channel<TSend> {
|
||||
|
||||
Reference in New Issue
Block a user