Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply the C-EVOCATIVE guideline to
options!
(rust-lang#2480)
The Rust API Guidelines state that macors should keep the input syntax of a macro similar to the Rust syntax when possible. The `options!` macro input followed this format: ```rust field: { ty: Ty, ... } ``` However, the following syntax should be better: ```rust field: ty { ... } ``` This is done because the `options!` macro defines a `struct` and these changes still evoke the common `field: ty` syntax followed by Rust. See https://rust-lang.github.io/api-guidelines/macros.html#input-syntax-is-evocative-of-the-output-c-evocative.
- Loading branch information