diff options
Diffstat (limited to 'azalea-buf/azalea-buf-macros/src')
| -rwxr-xr-x | azalea-buf/azalea-buf-macros/src/lib.rs | 2 | ||||
| -rw-r--r-- | azalea-buf/azalea-buf-macros/src/read.rs | 4 | ||||
| -rw-r--r-- | azalea-buf/azalea-buf-macros/src/write.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/azalea-buf/azalea-buf-macros/src/lib.rs b/azalea-buf/azalea-buf-macros/src/lib.rs index dec624e3..c4938f89 100755 --- a/azalea-buf/azalea-buf-macros/src/lib.rs +++ b/azalea-buf/azalea-buf-macros/src/lib.rs @@ -3,7 +3,7 @@ mod write; use proc_macro::TokenStream; use quote::quote; -use syn::{parse_macro_input, DeriveInput}; +use syn::{DeriveInput, parse_macro_input}; #[proc_macro_derive(AzaleaRead, attributes(var))] pub fn derive_azalearead(input: TokenStream) -> TokenStream { diff --git a/azalea-buf/azalea-buf-macros/src/read.rs b/azalea-buf/azalea-buf-macros/src/read.rs index c093d4a1..0500ec7c 100644 --- a/azalea-buf/azalea-buf-macros/src/read.rs +++ b/azalea-buf/azalea-buf-macros/src/read.rs @@ -1,5 +1,5 @@ -use quote::{quote, ToTokens}; -use syn::{punctuated::Punctuated, token::Comma, Data, Field, FieldsNamed, Ident}; +use quote::{ToTokens, quote}; +use syn::{Data, Field, FieldsNamed, Ident, punctuated::Punctuated, token::Comma}; fn read_named_fields( named: &Punctuated<Field, Comma>, diff --git a/azalea-buf/azalea-buf-macros/src/write.rs b/azalea-buf/azalea-buf-macros/src/write.rs index df461d59..de436e70 100644 --- a/azalea-buf/azalea-buf-macros/src/write.rs +++ b/azalea-buf/azalea-buf-macros/src/write.rs @@ -1,6 +1,6 @@ use proc_macro2::Span; -use quote::{quote, ToTokens}; -use syn::{punctuated::Punctuated, token::Comma, Data, Field, FieldsNamed, Ident}; +use quote::{ToTokens, quote}; +use syn::{Data, Field, FieldsNamed, Ident, punctuated::Punctuated, token::Comma}; fn write_named_fields( named: &Punctuated<Field, Comma>, |
