diff --git a/crates/bevy_reflect/src/array.rs b/crates/bevy_reflect/src/array.rs index 1765effedbbdf..4bae8fdbb9d56 100644 --- a/crates/bevy_reflect/src/array.rs +++ b/crates/bevy_reflect/src/array.rs @@ -1,10 +1,10 @@ use crate::{serde::Serializable, Reflect, ReflectMut, ReflectRef}; use serde::ser::SerializeSeq; +use std::fmt::Debug; use std::{ any::Any, hash::{Hash, Hasher}, }; -use std::fmt::Debug; /// A static-sized array of [`Reflect`] items. /// @@ -324,4 +324,4 @@ pub fn array_debug(dyn_array: &dyn Array, f: &mut std::fmt::Formatter<'_>) -> st debug.entry(&item as &dyn Debug); } debug.finish() -} \ No newline at end of file +} diff --git a/crates/bevy_reflect/src/lib.rs b/crates/bevy_reflect/src/lib.rs index f39f11a7ae9a9..a4e1e88565494 100644 --- a/crates/bevy_reflect/src/lib.rs +++ b/crates/bevy_reflect/src/lib.rs @@ -84,7 +84,6 @@ pub mod __macro_exports { #[cfg(test)] #[allow(clippy::blacklisted_name, clippy::approx_constant)] mod tests { - use std::fmt::{Debug, Formatter}; #[cfg(feature = "glam")] use ::glam::{vec3, Vec3}; use ::serde::de::DeserializeSeed; @@ -93,6 +92,7 @@ mod tests { ser::{to_string_pretty, PrettyConfig}, Deserializer, }; + use std::fmt::{Debug, Formatter}; use super::*; use crate as bevy_reflect; @@ -503,7 +503,7 @@ mod tests { custom: CustomDebug, unknown: Option, #[reflect(ignore)] - ignored: isize + ignored: isize, } #[derive(Reflect)] @@ -537,7 +537,7 @@ mod tests { a_tuple_struct: SomeTupleStruct(String::from("A Tuple Struct!")), custom: CustomDebug, unknown: Some(String::from("Enums aren't supported yet :(")), - ignored: 321 + ignored: 321, }; let reflected: &dyn Reflect = &test; diff --git a/crates/bevy_reflect/src/list.rs b/crates/bevy_reflect/src/list.rs index c76bf0301478a..a3fabcc5edf30 100644 --- a/crates/bevy_reflect/src/list.rs +++ b/crates/bevy_reflect/src/list.rs @@ -281,9 +281,7 @@ pub fn list_debug(dyn_list: &dyn List, f: &mut std::fmt::Formatter<'_>) -> std:: #[cfg(test)] mod tests { use super::DynamicList; - use crate::List; use std::assert_eq; - use std::fmt::Debug; #[test] fn test_into_iter() { diff --git a/crates/bevy_reflect/src/map.rs b/crates/bevy_reflect/src/map.rs index d0719775e866d..59519a03b9eaa 100644 --- a/crates/bevy_reflect/src/map.rs +++ b/crates/bevy_reflect/src/map.rs @@ -306,8 +306,6 @@ pub fn map_debug(dyn_map: &dyn Map, f: &mut std::fmt::Formatter<'_>) -> std::fmt #[cfg(test)] mod tests { use super::DynamicMap; - use crate::Map; - use std::fmt::Debug; #[test] fn test_into_iter() {