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
+2 -1
View File
@@ -3,8 +3,9 @@ use crate::internals::ast::{Container, Data, Field, Style, Variant};
use crate::internals::{attr, replace_receiver, Ctxt, Derive};
use crate::{bound, dummy, pretend, this};
use proc_macro2::{Span, TokenStream};
use quote::{quote, quote_spanned};
use syn::spanned::Spanned;
use syn::{self, Ident, Index, Member};
use syn::{parse_quote, Ident, Index, Member};
pub fn expand_derive_serialize(input: &mut syn::DeriveInput) -> syn::Result<TokenStream> {
replace_receiver(input);