Skip to content

Commit 0a452ba

Browse files
committed
Fix CI errors
1 parent ad1146e commit 0a452ba

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

crates/bevy_reflect/src/error.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub enum ReflectCloneError {
3030
/// [deriving `Reflect`]: derive@crate::Reflect
3131
#[error(
3232
"field `{}` cannot be made clonable for `Reflect::reflect_clone` (are you missing a `#[reflect(clone)]` attribute?)",
33-
full_path(.field, .variant, .container_type_path)
33+
full_path(.field, .variant.as_deref(), .container_type_path)
3434
)]
3535
FieldNotClonable {
3636
field: FieldId,
@@ -49,11 +49,7 @@ pub enum ReflectCloneError {
4949
},
5050
}
5151

52-
fn full_path(
53-
field: &FieldId,
54-
variant: &Option<Cow<'static, str>>,
55-
container_type_path: &Cow<'static, str>,
56-
) -> String {
52+
fn full_path(field: &FieldId, variant: Option<&str>, container_type_path: &str) -> String {
5753
match variant {
5854
Some(variant) => format!("{}::{}::{}", container_type_path, variant, field),
5955
None => format!("{}::{}", container_type_path, field),

0 commit comments

Comments
 (0)