style: apply cargo fmt
This commit is contained in:
parent
534ed83419
commit
d205d722aa
17 changed files with 390 additions and 315 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use proc_macro::TokenStream;
|
||||
use quote::quote;
|
||||
use syn::{DeriveInput, Fields, parse_macro_input};
|
||||
use syn::{parse_macro_input, DeriveInput, Fields};
|
||||
|
||||
#[proc_macro_attribute]
|
||||
pub fn sql_generator_model(_attr: TokenStream, item: TokenStream) -> TokenStream {
|
||||
|
|
@ -38,4 +38,3 @@ pub fn derive_sql_generator_model_with_id(input: TokenStream) -> TokenStream {
|
|||
// If `id` field is not found, return an error
|
||||
panic!("Expected struct with a named field `id` of type String")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue