First of all, the functions to work with SpecialEventId are taking it by value, and the type is neither Copy or Clone.
Secondly, just using the unregister_for_special_xge causes a link error on Linux:
= note: /nix/store/idiaraknw071d20nlqp49s18gbvw4wa0-binutils-2.40/bin/ld: /x/Code/zed/target/debug/deps/libxcb-d470bca867b6749e.rlib(xcb-d470bca867b6749e.xcb.7ff96fb8a6077c09-cgu.11.rcgu.o): in function `<xcb::base::Connection>::unregister_for_special_xge':
/home/kvark/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xcb-1.3.0/src/base.rs:1282: undefined reference to `xcb_unregister_for_special_xge'
collect2: error: ld returned 1 exit status
First of all, the functions to work with
SpecialEventId
are taking it by value, and the type is neitherCopy
orClone
.Secondly, just using the
unregister_for_special_xge
causes a link error on Linux: