From 5129384fc0b6f51d315fd528d7769dd638018b88 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 10 Jul 2022 16:06:50 +0200 Subject: style: group imports --- rustfmt.toml | 1 + syrette/src/errors/di_container.rs | 3 ++- syrette_macros/src/libs/intertrait_macros/gen_caster.rs | 5 ++--- 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, -- cgit v1.2.3-18-g5258