Skip to content

Commit 79d864f

Browse files
committed
Fix formatting and clippy
1 parent 287dc32 commit 79d864f

File tree

5 files changed

+3
-10
lines changed

5 files changed

+3
-10
lines changed

crates/bevy_reflect/src/impls/smallvec.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ where
8585
}
8686

8787
#[inline]
88-
8988
fn try_into_reflect(self: Box<Self>) -> Result<Box<dyn Reflect>, Box<dyn PartialReflect>> {
9089
Ok(self)
9190
}

crates/bevy_reflect/src/impls/std.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,6 @@ impl<T: Reflect + MaybeTyped + TypePath + GetTypeRegistration, const N: usize> P
13061306
}
13071307

13081308
#[inline]
1309-
13101309
fn try_into_reflect(self: Box<Self>) -> Result<Box<dyn Reflect>, Box<dyn PartialReflect>> {
13111310
Ok(self)
13121311
}
@@ -1515,7 +1514,6 @@ impl PartialReflect for Cow<'static, str> {
15151514
}
15161515

15171516
#[inline]
1518-
15191517
fn try_into_reflect(self: Box<Self>) -> Result<Box<dyn Reflect>, Box<dyn PartialReflect>> {
15201518
Ok(self)
15211519
}
@@ -1792,7 +1790,6 @@ impl PartialReflect for &'static str {
17921790
}
17931791

17941792
#[inline]
1795-
17961793
fn try_into_reflect(self: Box<Self>) -> Result<Box<dyn Reflect>, Box<dyn PartialReflect>> {
17971794
Ok(self)
17981795
}
@@ -1887,7 +1884,6 @@ impl PartialReflect for &'static Path {
18871884
}
18881885

18891886
#[inline]
1890-
18911887
fn try_into_reflect(self: Box<Self>) -> Result<Box<dyn Reflect>, Box<dyn PartialReflect>> {
18921888
Ok(self)
18931889
}
@@ -1986,7 +1982,6 @@ impl PartialReflect for Cow<'static, Path> {
19861982
}
19871983

19881984
#[inline]
1989-
19901985
fn try_into_reflect(self: Box<Self>) -> Result<Box<dyn Reflect>, Box<dyn PartialReflect>> {
19911986
Ok(self)
19921987
}

crates/bevy_reflect/src/tuple.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ impl PartialReflect for DynamicTuple {
294294
}
295295

296296
#[inline]
297-
298297
fn try_into_reflect(self: Box<Self>) -> Result<Box<dyn Reflect>, Box<dyn PartialReflect>> {
299298
Err(self)
300299
}

crates/bevy_reflect/src/type_info.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::{
22
ArrayInfo, DynamicArray, DynamicEnum, DynamicList, DynamicMap, DynamicStruct, DynamicTuple,
3-
DynamicTupleStruct, EnumInfo, Generics, ListInfo, MapInfo, ReflectKind, SetInfo,
4-
StructInfo, TupleInfo, TupleStructInfo, TypePath, TypePathTable,
3+
DynamicTupleStruct, EnumInfo, Generics, ListInfo, MapInfo, ReflectKind, SetInfo, StructInfo,
4+
TupleInfo, TupleStructInfo, TypePath, TypePathTable,
55
};
66
use core::{
77
any::{Any, TypeId},

crates/bevy_scene/src/dynamic_scene_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ impl<'w> DynamicSceneBuilder<'w> {
387387
let resource = type_registration
388388
.data::<ReflectFromReflect>()
389389
.and_then(|fr| fr.from_reflect(resource.as_partial_reflect()))
390-
.map(PartialReflect::into_partial_reflect)
390+
.map(CastPartialReflect::into_partial_reflect)
391391
.unwrap_or_else(|| resource.clone_value());
392392

393393
self.extracted_resources.insert(component_id, resource);

0 commit comments

Comments
 (0)