Skip to content

Extend the task macro to allow cfging arguments away #2380

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

Merged
merged 2 commits into from
Dec 31, 2023

Conversation

MabezDev
Copy link
Contributor

Closes #2378

Copy link
Member

@Dirbaio Dirbaio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Could you add a test? You can use #[cfg(any())] to simulate a feature that's off and #[cfg(all())] to simulate one that's on.

Copy link
Member

@Dirbaio Dirbaio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@Dirbaio Dirbaio added this pull request to the merge queue Dec 31, 2023
Merged via the queue into embassy-rs:main with commit 0be9b05 Dec 31, 2023
@MabezDev MabezDev deleted the cfg-task-args branch December 31, 2023 18:45
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.

embassy task: cannot cfg away task arguments
2 participants