aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rustfmt.toml1
-rw-r--r--syrette/src/errors/di_container.rs3
-rw-r--r--syrette_macros/src/libs/intertrait_macros/gen_caster.rs5
3 files changed, 5 insertions, 4 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
index fcb17fe..b689c7b 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -1,3 +1,4 @@
max_width = 90
brace_style = "AlwaysNextLine"
+group_imports = "StdExternalCrate"
diff --git a/syrette/src/errors/di_container.rs b/syrette/src/errors/di_container.rs
index f301df2..f2b8add 100644
--- a/syrette/src/errors/di_container.rs
+++ b/syrette/src/errors/di_container.rs
@@ -1,7 +1,8 @@
-use error_stack::Context;
use std::fmt;
use std::fmt::{Display, Formatter};
+use error_stack::Context;
+
#[derive(Debug)]
pub struct DIContainerError;
diff --git a/syrette_macros/src/libs/intertrait_macros/gen_caster.rs b/syrette_macros/src/libs/intertrait_macros/gen_caster.rs
index 9d177ed..268fb09 100644
--- a/syrette_macros/src/libs/intertrait_macros/gen_caster.rs
+++ b/syrette_macros/src/libs/intertrait_macros/gen_caster.rs
@@ -14,12 +14,11 @@
use std::str::from_utf8_unchecked;
use proc_macro2::TokenStream;
-use uuid::adapter::Simple;
-use uuid::Uuid;
-
use quote::format_ident;
use quote::quote;
use quote::ToTokens;
+use uuid::adapter::Simple;
+use uuid::Uuid;
pub fn generate_caster(
ty: &impl ToTokens,