aboutsummaryrefslogtreecommitdiff
path: root/mingling_macros
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-11 16:10:53 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-11 16:10:53 +0800
commit85c8986f26031cc11ed1e1da77fdf099b5814381 (patch)
treed4a53fadc683988fd30d1ee07de23a11b9d37ac6 /mingling_macros
parent810536fb1f068f969af316be0450a1edacfe8e28 (diff)
style: Reorder imports and reformat code with cargo fmt
Diffstat (limited to 'mingling_macros')
-rw-r--r--mingling_macros/src/dispatcher_clap.rs3
-rw-r--r--mingling_macros/src/help.rs4
-rw-r--r--mingling_macros/src/renderer.rs4
3 files changed, 6 insertions, 5 deletions
diff --git a/mingling_macros/src/dispatcher_clap.rs b/mingling_macros/src/dispatcher_clap.rs
index b89dbad..0945e31 100644
--- a/mingling_macros/src/dispatcher_clap.rs
+++ b/mingling_macros/src/dispatcher_clap.rs
@@ -1,8 +1,9 @@
use proc_macro::TokenStream;
use quote::quote;
use syn::{
+ Ident, ItemStruct, LitBool, LitStr, Token,
parse::{Parse, ParseStream},
- parse_macro_input, Ident, ItemStruct, LitBool, LitStr, Token,
+ parse_macro_input,
};
/// Parsed key-value options after the first positional arguments
diff --git a/mingling_macros/src/help.rs b/mingling_macros/src/help.rs
index 7f5b695..1903d07 100644
--- a/mingling_macros/src/help.rs
+++ b/mingling_macros/src/help.rs
@@ -1,7 +1,7 @@
use proc_macro::TokenStream;
-use quote::{quote, ToTokens};
+use quote::{ToTokens, quote};
use syn::spanned::Spanned;
-use syn::{parse_macro_input, Ident, ItemFn, ReturnType, Type, TypePath};
+use syn::{Ident, ItemFn, ReturnType, Type, TypePath, parse_macro_input};
use crate::get_global_set;
use crate::res_injection::{extract_args_info, generate_immut_resource_bindings};
diff --git a/mingling_macros/src/renderer.rs b/mingling_macros/src/renderer.rs
index 9683426..f47511c 100644
--- a/mingling_macros/src/renderer.rs
+++ b/mingling_macros/src/renderer.rs
@@ -1,7 +1,7 @@
use proc_macro::TokenStream;
-use quote::{quote, ToTokens};
+use quote::{ToTokens, quote};
use syn::spanned::Spanned;
-use syn::{parse_macro_input, ItemFn, ReturnType, Signature, Type, TypePath};
+use syn::{ItemFn, ReturnType, Signature, Type, TypePath, parse_macro_input};
use crate::get_global_set;
use crate::res_injection::{extract_args_info, generate_immut_resource_bindings};