@@ -11,30 +11,29 @@ pub(crate) mod generate;
1111pub ( crate ) mod parse;
1212pub ( crate ) mod visibility;
1313
14- pub ( crate ) use config:: * ;
15- pub ( crate ) use func:: * ;
16- pub ( crate ) use generate:: * ;
17- pub ( crate ) use parse:: * ;
18- pub ( crate ) use visibility:: * ;
14+ pub ( crate ) use { config:: * , func:: * , generate:: * , parse:: * , visibility:: * } ;
1915
20- pub ( crate ) use proc_macro:: TokenStream ;
21- pub ( crate ) use proc_macro2:: {
22- Delimiter , TokenStream as TokenStream2 , TokenTree as TokenTree2 , token_stream:: IntoIter ,
16+ pub ( crate ) use {
17+ proc_macro:: TokenStream ,
18+ proc_macro2:: {
19+ Delimiter , TokenStream as TokenStream2 , TokenTree as TokenTree2 , token_stream:: IntoIter ,
20+ } ,
21+ quote:: { ToTokens , format_ident, quote} ,
22+ syn:: {
23+ Data , DeriveInput , Field , Fields , GenericArgument ,
24+ GenericParam :: { self } ,
25+ Generics , Ident , Index , Lifetime , PathArguments ,
26+ Type :: { self } ,
27+ TypeParam , Variant , WhereClause , parse_macro_input,
28+ } ,
2329} ;
24- pub ( crate ) use quote :: { ToTokens , format_ident , quote } ;
30+
2531pub ( crate ) use std:: {
2632 collections:: HashMap ,
2733 fmt:: { Display , Formatter } ,
2834 iter:: Peekable ,
2935 str:: FromStr ,
3036} ;
31- pub ( crate ) use syn:: {
32- Data , DeriveInput , Field , Fields , GenericArgument ,
33- GenericParam :: { self } ,
34- Generics , Ident , Index , Lifetime , PathArguments ,
35- Type :: { self } ,
36- TypeParam , Variant , WhereClause , parse_macro_input,
37- } ;
3837
3938/// A procedural macro that automatically generates getter methods for struct and enum fields.
4039///
0 commit comments