We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcfab19 commit 833456fCopy full SHA for 833456f
crates/bevy_mod_scripting_bindings/src/conversions/primitive.rs
@@ -418,9 +418,7 @@ mod tests {
418
boxed.unwrap().try_downcast_ref::<String>().unwrap(),
419
expected.unwrap()
420
);
421
- } else if *ty == TypeId::of::<&'static str>() {
422
- assert!(boxed.is_none());
423
- } else if *ty == TypeId::of::<Cow<str>>() {
+ } else if *ty == TypeId::of::<&'static str>() || *ty == TypeId::of::<Cow<str>>() {
424
assert!(boxed.is_none());
425
} else if *ty == TypeId::of::<PathBuf>() {
426
assert_eq!(
0 commit comments