Skip to content

Commit

Permalink
Fix warnings in bevy_reflect (#11556)
Browse files Browse the repository at this point in the history
# Objective

- Address junk leftover by TypeUuid removal

## Solution

- Get rid of unused deps and imports

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
  • Loading branch information
atlv24 and alice-i-cecile authored Jan 27, 2024
1 parent 1e241fb commit 886a256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion crates/bevy_reflect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ glam = { version = "0.25", features = ["serde"], optional = true }
smol_str = { version = "0.2.0", optional = true }

[dev-dependencies]
glam = { version = "0.25", features = ["serde"] }
ron = "0.8.0"
rmp-serde = "1.1"
bincode = "1.3"
Expand Down
6 changes: 2 additions & 4 deletions crates/bevy_reflect/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,15 +535,12 @@ pub mod __macro_exports {
#[cfg(test)]
#[allow(clippy::disallowed_types, clippy::approx_constant)]
mod tests {
use ::serde::{de::DeserializeSeed, Deserialize, Serialize};
use bevy_utils::HashMap;
#[rustfmt::skip] // This is used to avoid import conflicts with `super`
use ::glam::{quat, vec3, Quat, Vec3};
use ron::{
ser::{to_string_pretty, PrettyConfig},
Deserializer,
};
#[rustfmt::skip] // This is used to avoid import conflicts with `super::`
use ::serde::{de::DeserializeSeed, Deserialize, Serialize};
use std::{
any::TypeId,
borrow::Cow,
Expand Down Expand Up @@ -1996,6 +1993,7 @@ bevy_reflect::tests::Test {
#[cfg(feature = "glam")]
mod glam {
use super::*;
use ::glam::{quat, vec3, Quat, Vec3};

#[test]
fn quat_serialization() {
Expand Down

0 comments on commit 886a256

Please sign in to comment.