You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments