mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Rename ConfigurationOptions
derive macro to OptionsMetadata
## Summary It's common practice to name derive macros the same as the trait that they implement (`Debug`, `Display`, `Eq`, `Serialize`, ...). This PR renames the `ConfigurationOptions` derive macro to `OptionsMetadata` to match the trait name. ## Test Plan `cargo build`
This commit is contained in:
parent
0c65d0c8a6
commit
e863fa55cb
2 changed files with 30 additions and 30 deletions
|
@ -15,8 +15,8 @@ mod rule_code_prefix;
|
|||
mod rule_namespace;
|
||||
mod violation;
|
||||
|
||||
#[proc_macro_derive(ConfigurationOptions, attributes(option, doc, option_group))]
|
||||
pub fn derive_config(input: TokenStream) -> TokenStream {
|
||||
#[proc_macro_derive(OptionsMetadata, attributes(option, doc, option_group))]
|
||||
pub fn derive_options_metadata(input: TokenStream) -> TokenStream {
|
||||
let input = parse_macro_input!(input as DeriveInput);
|
||||
|
||||
config::derive_impl(input)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue