mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Remove unnecessary path prefixes (#4492)
This commit is contained in:
parent
a8d080c825
commit
e8e66f3824
13 changed files with 252 additions and 324 deletions
|
@ -3,7 +3,7 @@ use quote::{quote, quote_spanned, ToTokens};
|
|||
use syn::spanned::Spanned;
|
||||
use syn::{Block, Expr, ItemFn, Stmt};
|
||||
|
||||
pub(crate) fn derive_message_formats(func: &ItemFn) -> proc_macro2::TokenStream {
|
||||
pub(crate) fn derive_message_formats(func: &ItemFn) -> TokenStream {
|
||||
let mut strings = quote!();
|
||||
|
||||
if let Err(err) = parse_block(&func.block, &mut strings) {
|
||||
|
|
|
@ -24,7 +24,7 @@ pub fn derive_config(input: TokenStream) -> TokenStream {
|
|||
}
|
||||
|
||||
#[proc_macro_derive(CombineOptions)]
|
||||
pub fn derive_combine_options(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
|
||||
pub fn derive_combine_options(input: TokenStream) -> TokenStream {
|
||||
let input = parse_macro_input!(input as DeriveInput);
|
||||
|
||||
combine_options::derive_impl(input)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue