Eliminate #[macro_use] from serde_derive

This commit is contained in:
David Tolnay
2023-07-25 18:32:02 -07:00
parent dd9913675d
commit 0fb672a1ef
13 changed files with 18 additions and 20 deletions
@@ -1,9 +1,7 @@
#[macro_use]
extern crate quote;
#[macro_use]
extern crate syn;
extern crate proc_macro;
extern crate proc_macro2;
extern crate quote;
extern crate syn;
#[macro_use]
mod bound;
@@ -19,7 +17,7 @@ mod this;
mod try;
use proc_macro::TokenStream;
use syn::DeriveInput;
use syn::{parse_macro_input, DeriveInput};
#[proc_macro_derive(Serialize, attributes(serde))]
pub fn derive_serialize(input: TokenStream) -> TokenStream {