Skip to content

Commit d8f7d9b

Browse files
committed
Fix CI errors
1 parent 0103072 commit d8f7d9b

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

crates/bevy_reflect/compile_fail/tests/reflect_remote/nested_fail.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ mod incorrect_inner_type {
2222
use bevy_reflect::{FromReflect, GetTypeRegistration, reflect_remote};
2323

2424
#[reflect_remote(super::external_crate::TheirOuter<T>)]
25-
//~^ ERROR: `TheirInner<T>` can not be reflected
26-
//~| ERROR: `TheirInner<T>` can not be reflected
27-
//~| ERROR: `TheirInner<T>` can not be reflected
25+
//~^ ERROR: `TheirInner<T>` does not implement `PartialReflect` so cannot be introspected
26+
//~| ERROR: `TheirInner<T>` does not implement `PartialReflect` so cannot be introspected
27+
//~| ERROR: `TheirInner<T>` does not implement `PartialReflect` so cannot be introspected
2828
//~| ERROR: `TheirInner<T>` can not be used as a dynamic type path
2929
//~| ERROR: `?` operator has incompatible types
3030
struct MyOuter<T: FromReflect + GetTypeRegistration> {

crates/bevy_reflect/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2882,7 +2882,7 @@ bevy_reflect::tests::Test {
28822882
value: "Hello".to_string(),
28832883
},
28842884
output,
2885-
)
2885+
);
28862886
}
28872887

28882888
#[test]

crates/bevy_reflect/src/reflect.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ impl dyn PartialReflect {
457457
/// If the underlying value does not implement [`Reflect`]
458458
/// or is not of type `T`, returns `Err(self)`.
459459
///
460-
/// For remote types, `T` should be the type itself rather than the wraper type.
460+
/// For remote types, `T` should be the type itself rather than the wrapper type.
461461
pub fn try_downcast<T: Any>(
462462
self: Box<dyn PartialReflect>,
463463
) -> Result<Box<T>, Box<dyn PartialReflect>> {
@@ -471,7 +471,7 @@ impl dyn PartialReflect {
471471
/// If the underlying value does not implement [`Reflect`]
472472
/// or is not of type `T`, returns `Err(self)`.
473473
///
474-
/// For remote types, `T` should be the type itself rather than the wraper type.
474+
/// For remote types, `T` should be the type itself rather than the wrapper type.
475475
pub fn try_take<T: Any>(self: Box<dyn PartialReflect>) -> Result<T, Box<dyn PartialReflect>> {
476476
self.try_downcast().map(|value| *value)
477477
}
@@ -481,7 +481,7 @@ impl dyn PartialReflect {
481481
/// If the underlying value does not implement [`Reflect`]
482482
/// or is not of type `T`, returns [`None`].
483483
///
484-
/// For remote types, `T` should be the type itself rather than the wraper type.
484+
/// For remote types, `T` should be the type itself rather than the wrapper type.
485485
pub fn try_downcast_ref<T: Any>(&self) -> Option<&T> {
486486
self.try_as_reflect()?.downcast_ref()
487487
}
@@ -491,7 +491,7 @@ impl dyn PartialReflect {
491491
/// If the underlying value does not implement [`Reflect`]
492492
/// or is not of type `T`, returns [`None`].
493493
///
494-
/// For remote types, `T` should be the type itself rather than the wraper type.
494+
/// For remote types, `T` should be the type itself rather than the wrapper type.
495495
pub fn try_downcast_mut<T: Any>(&mut self) -> Option<&mut T> {
496496
self.try_as_reflect_mut()?.downcast_mut()
497497
}
@@ -521,7 +521,7 @@ impl dyn Reflect {
521521
///
522522
/// If the underlying value is not of type `T`, returns `Err(self)`.
523523
///
524-
/// For remote types, `T` should be the type itself rather than the wraper type.
524+
/// For remote types, `T` should be the type itself rather than the wrapper type.
525525
pub fn downcast<T: Any>(self: Box<dyn Reflect>) -> Result<Box<T>, Box<dyn Reflect>> {
526526
if self.is::<T>() {
527527
Ok(self.into_any().downcast().unwrap())
@@ -534,7 +534,7 @@ impl dyn Reflect {
534534
///
535535
/// If the underlying value is not of type `T`, returns `Err(self)`.
536536
///
537-
/// For remote types, `T` should be the type itself rather than the wraper type.
537+
/// For remote types, `T` should be the type itself rather than the wrapper type.
538538
pub fn take<T: Any>(self: Box<dyn Reflect>) -> Result<T, Box<dyn Reflect>> {
539539
self.downcast::<T>().map(|value| *value)
540540
}
@@ -548,7 +548,7 @@ impl dyn Reflect {
548548
/// to determine what type they represent. Represented types cannot be downcasted
549549
/// to, but you can use [`FromReflect`] to create a value of the represented type from them.
550550
///
551-
/// For remote types, `T` should be the type itself rather than the wraper type.
551+
/// For remote types, `T` should be the type itself rather than the wrapper type.
552552
///
553553
/// [`FromReflect`]: crate::FromReflect
554554
#[inline]
@@ -560,7 +560,7 @@ impl dyn Reflect {
560560
///
561561
/// If the underlying value is not of type `T`, returns `None`.
562562
///
563-
/// For remote types, `T` should be the type itself rather than the wraper type.
563+
/// For remote types, `T` should be the type itself rather than the wrapper type.
564564
#[inline]
565565
pub fn downcast_ref<T: Any>(&self) -> Option<&T> {
566566
self.as_any().downcast_ref::<T>()
@@ -570,7 +570,7 @@ impl dyn Reflect {
570570
///
571571
/// If the underlying value is not of type `T`, returns `None`.
572572
///
573-
/// For remote types, `T` should be the type itself rather than the wraper type.
573+
/// For remote types, `T` should be the type itself rather than the wrapper type.
574574
#[inline]
575575
pub fn downcast_mut<T: Any>(&mut self) -> Option<&mut T> {
576576
self.as_any_mut().downcast_mut::<T>()

0 commit comments

Comments
 (0)