fix

Function fix 

Source
pub fn fix(
    attr: TokenStream,
    item: TokenStream,
    target: TokenStream,
    imports: &[TokenStream],
    passthru: Option<TokenStream>,
) -> TokenStream
Expand description

Entry function to call from the proc_macro_attribute function.

Pay attention to the mixed use of proc_macro::TokenStream and proc_macro2::TokenStream in the signature.

See the README for detailed explanation.