Remove unnecessary path prefixes (#4492)

This commit is contained in:
Charlie Marsh 2023-05-18 10:19:09 -04:00 committed by GitHub
parent a8d080c825
commit e8e66f3824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 252 additions and 324 deletions

View file

@ -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) {