Skip to content

Commit

Permalink
Fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGVSV committed May 13, 2022
1 parent 4998d85 commit 3526fed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_reflect/src/array.rs
Original file line number Diff line number Diff line change
@@ -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.
///
Expand Down Expand Up @@ -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()
}
}
6 changes: 3 additions & 3 deletions crates/bevy_reflect/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -93,6 +92,7 @@ mod tests {
ser::{to_string_pretty, PrettyConfig},
Deserializer,
};
use std::fmt::{Debug, Formatter};

use super::*;
use crate as bevy_reflect;
Expand Down Expand Up @@ -503,7 +503,7 @@ mod tests {
custom: CustomDebug,
unknown: Option<String>,
#[reflect(ignore)]
ignored: isize
ignored: isize,
}

#[derive(Reflect)]
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions crates/bevy_reflect/src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 0 additions & 2 deletions crates/bevy_reflect/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3526fed

Please sign in to comment.