1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 22:51:07 +01:00

remove lint exception

This commit is contained in:
Rob Ede 2023-07-24 03:27:44 +01:00
parent 9017de439f
commit 9cb8a1fadc
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -28,8 +28,6 @@ type AttributeArgs = syn::punctuated::Punctuated<syn::Meta, syn::Token![,]>;
/// println!("Hello world"); /// println!("Hello world");
/// } /// }
/// ``` /// ```
#[allow(clippy::needless_doctest_main)]
#[cfg(not(test))] // Work around for rust-lang/rust#62127
#[proc_macro_attribute] #[proc_macro_attribute]
pub fn main(args: TokenStream, item: TokenStream) -> TokenStream { pub fn main(args: TokenStream, item: TokenStream) -> TokenStream {
let mut input = match syn::parse::<syn::ItemFn>(item.clone()) { let mut input = match syn::parse::<syn::ItemFn>(item.clone()) {