mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-28 22:42:34 +00:00
25c6bc137e
Using an enum implementing PollToken is the recommended way to use PollContext, but writing the trait impls for each enum is mechanical yet error prone. This is a perfect candidate for a custom derive, which automates away the process using a simple derive attribute on an enum. BUG=chromium:816692 TEST=cargo test -p sys_util Change-Id: If21d0f94f9af4b4f6cef1f24c78fc36b50471053 Reviewed-on: https://chromium-review.googlesource.com/940865 Commit-Ready: Zach Reizner <zachr@chromium.org> Tested-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
8 lines
148 B
TOML
8 lines
148 B
TOML
[package]
|
|
name = "poll_token_derive"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
path = "poll_token_derive.rs"
|