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

refactor: move send_command macro into a function #255

Merged
merged 3 commits into from
Apr 6, 2024

Conversation

lavafroth
Copy link
Contributor

The send_command macro in SWHKD's daemon.rs component accepts expressions with the same datatype in all invocations. Moving it into a function helps language servers like Rust Analyzer make inferences easier because the expressions become concrete types.

The macro accepts expressions with the same datatype in all invocations.
Moving it into a function helps language servers make inferences easier because the expressions become concrete types.
@Shinyzenith
Copy link
Member

CC: @zubairmh

@zubairmh
Copy link

zubairmh commented Apr 1, 2024

I've tested the PR, we can get this merged

@lavafroth
Copy link
Contributor Author

@Shinyzenith ping

@Shinyzenith Shinyzenith merged commit 7999a9b into waycrate:main Apr 6, 2024
7 checks passed
@lavafroth lavafroth deleted the send-command-fn branch May 13, 2024 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants