waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
666 stars 47 forks source link

refactor: move `send_command` macro into a function #255

Closed lavafroth closed 3 months ago

lavafroth commented 4 months ago

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.

Shinyzenith commented 4 months ago

CC: @zubairmh

zubairmh commented 3 months ago

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

lavafroth commented 3 months ago

@Shinyzenith ping