diff --git a/nutype_macros/src/any/models.rs b/nutype_macros/src/any/models.rs index 8b239e8..a9bd16c 100644 --- a/nutype_macros/src/any/models.rs +++ b/nutype_macros/src/any/models.rs @@ -1,7 +1,7 @@ +use core::fmt::Debug; use kinded::Kinded; use proc_macro2::TokenStream; use quote::ToTokens; -use core::fmt::Debug; use syn::Field; use crate::common::models::{CustomFunction, Guard, RawGuard, SpannedItem, TypeTrait}; diff --git a/nutype_macros/src/common/models.rs b/nutype_macros/src/common/models.rs index 5e62556..4d2a3b0 100644 --- a/nutype_macros/src/common/models.rs +++ b/nutype_macros/src/common/models.rs @@ -1,7 +1,7 @@ mod error_type_path; -use kinded::Kinded; use core::{fmt::Debug, ops::Add}; +use kinded::Kinded; use std::collections::HashSet; use syn::Generics; diff --git a/test_suite/tests/any.rs b/test_suite/tests/any.rs index a90254b..ce382e8 100644 --- a/test_suite/tests/any.rs +++ b/test_suite/tests/any.rs @@ -2,9 +2,9 @@ use nutype::nutype; extern crate alloc; use alloc::borrow::Cow; use core::cmp::{Ordering, PartialEq, PartialOrd}; -use std::collections::{HashMap, HashSet}; use core::fmt::Debug; use core::hash::Hash; +use std::collections::{HashMap, HashSet}; use test_suite::test_helpers::traits::*; // Inner custom type, which is unknown to nutype