Skip to content

Commit 55694a2

Browse files
committed
docs and tests
1 parent 0c1105e commit 55694a2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/bevy_reflect/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ bevy_reflect::tests::Test {
18021802
let output = to_string_pretty(&ser, config).unwrap();
18031803
let expected = r#"
18041804
{
1805-
"glam::f32::vec3::Vec3": (
1805+
"glam::Vec3": (
18061806
x: 12.0,
18071807
y: 3.0,
18081808
z: -6.9,
@@ -1816,7 +1816,7 @@ bevy_reflect::tests::Test {
18161816
fn vec3_deserialization() {
18171817
let data = r#"
18181818
{
1819-
"glam::f32::vec3::Vec3": (
1819+
"glam::Vec3": (
18201820
x: 12.0,
18211821
y: 3.0,
18221822
z: -6.9,

crates/bevy_reflect/src/serde/de.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ impl<'de> Visitor<'de> for U32Visitor {
233233
/// [`DynamicStruct`]: crate::DynamicStruct
234234
/// [`DynamicList`]: crate::DynamicList
235235
/// [`FromReflect`]: crate::FromReflect
236-
/// [type path]: TypePath::type_path
236+
/// [type path]: crate::TypePath::type_path
237237
pub struct UntypedReflectDeserializer<'a> {
238238
registry: &'a TypeRegistry,
239239
}
@@ -264,7 +264,7 @@ impl<'a, 'de> DeserializeSeed<'de> for UntypedReflectDeserializer<'a> {
264264
/// type to find the `TypeRegistration` of.
265265
///
266266
/// [`&TypeRegistration`]: crate::TypeRegistration
267-
/// [type path]: TypePath::type_path
267+
/// [type path]: crate::TypePath::type_path
268268
pub struct TypeRegistrationDeserializer<'a> {
269269
registry: &'a TypeRegistry,
270270
}

crates/bevy_reflect/src/serde/ser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn get_serializable<'a, E: serde::ser::Error>(
4949
/// 1. `type`: The _full_ [type path]
5050
/// 2. `value`: The serialized value of the reflected type
5151
///
52-
/// [type path]: TypePath::type_path
52+
/// [type path]: crate::TypePath::type_path
5353
pub struct ReflectSerializer<'a> {
5454
pub value: &'a dyn Reflect,
5555
pub registry: &'a TypeRegistry,

0 commit comments

Comments
 (0)