aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-10 16:06:50 +0200
committerHampusM <hampus@hampusmat.com>2022-07-10 16:06:50 +0200
commit5129384fc0b6f51d315fd528d7769dd638018b88 (patch)
treee44b8a0df1789d3b39a649d1c27e0ea4aed403fa
parent5894e39dd73579bdb949a3eaeb7b7b68f88df4e8 (diff)
style: group imports
-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,