Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix create_signal_from_tokio_channel feature #733

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

anishsinha-io
Copy link
Contributor

There was an apparent type error where a Trigger was being passed to crate::ext_event::register_ext_trigger; instead of an ExtSendTrigger`. It was under a feature flag and isn't used in any examples which is probably why it evaded detection.

There was an apparent type error where a `Trigger` was being passed to
`crate::ext_event::register_ext_trigger; instead of an `ExtSendTrigger`.
It was under a feature flag and isn't used in any examples which is
probably why it evaded detection.
@anishsinha-io
Copy link
Contributor Author

I also tested this fix in a nontrivial project which uses create_signal_from_tokio_channel so at least I can confirm that the behavior of the patched function is as I expected.

src/ext_event.rs Outdated Show resolved Hide resolved
@jrmoulton
Copy link
Collaborator

This looks good (and yes was a bug) but I'm not sure I understand the reason for that trait

src/ext_event.rs Outdated Show resolved Hide resolved
@jrmoulton jrmoulton linked an issue Jan 14, 2025 that may be closed by this pull request
@jrmoulton
Copy link
Collaborator

Thanks!

@jrmoulton jrmoulton merged commit cd45320 into lapce:main Jan 14, 2025
7 checks passed
@anishsinha-io anishsinha-io deleted the fix-signal-from-tokio-channel branch January 14, 2025 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crate feature tokio fails to build
2 participants