Eliminate 2015-style module system imports from serde_derive

This commit is contained in:
David Tolnay
2023-07-25 20:53:48 -07:00
parent 89f84c2915
commit 30f79b3b2e
11 changed files with 21 additions and 34 deletions
+3 -4
View File
@@ -1,11 +1,10 @@
use internals::symbol::*;
use internals::{ungroup, Ctxt};
use crate::internals::symbol::*;
use crate::internals::{ungroup, Ctxt};
use proc_macro2::{Spacing, Span, TokenStream, TokenTree};
use quote::ToTokens;
use std::borrow::Cow;
use std::collections::BTreeSet;
use std::iter::FromIterator;
use syn;
use syn::meta::ParseNestedMeta;
use syn::parse::ParseStream;
use syn::punctuated::Punctuated;
@@ -19,7 +18,7 @@ use syn::{token, Ident, Lifetime};
// user will see errors simultaneously for all bad attributes in the crate
// rather than just the first.
pub use internals::case::RenameRule;
pub use crate::internals::case::RenameRule;
struct Attr<'c, T> {
cx: &'c Ctxt,