Skip to content

Commit 0f1a404

Browse files
authored
Apply the C-EVOCATIVE guideline to options! (#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.
1 parent c3352ce commit 0f1a404

File tree

1 file changed

+107
-211
lines changed

1 file changed

+107
-211
lines changed

0 commit comments

Comments
 (0)