mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-24 04:03:52 +03:00
fix: Specta remote implementation for Channel
(#10435)
* Update channel.rs * Don't rely on `DataType` reexport
This commit is contained in:
parent
24445d71de
commit
6755af2302
5
.changes/change-pr-10435.md
Normal file
5
.changes/change-pr-10435.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
Fix Specta remote implementation target for `Channel`.
|
@ -46,7 +46,7 @@ pub struct Channel<TSend = InvokeBody> {
|
||||
#[cfg(feature = "specta")]
|
||||
const _: () = {
|
||||
#[derive(specta::Type)]
|
||||
#[specta(remote = Channel, rename = "TAURI_CHANNEL")]
|
||||
#[specta(remote = super::Channel, rename = "TAURI_CHANNEL")]
|
||||
struct Channel<TSend>(std::marker::PhantomData<TSend>);
|
||||
};
|
||||
|
||||
|
@ -992,7 +992,7 @@ pub mod test;
|
||||
|
||||
#[cfg(feature = "specta")]
|
||||
const _: () = {
|
||||
use specta::{function::FunctionArg, DataType, TypeMap};
|
||||
use specta::{datatype::DataType, function::FunctionArg, TypeMap};
|
||||
|
||||
impl<'r, T: Send + Sync + 'static> FunctionArg for crate::State<'r, T> {
|
||||
fn to_datatype(_: &mut TypeMap) -> Option<DataType> {
|
||||
|
Loading…
Reference in New Issue
Block a user