Skip to content

Commit 833456f

Browse files
committed
clippy
1 parent fcfab19 commit 833456f

File tree

1 file changed

+1
-3
lines changed
  • crates/bevy_mod_scripting_bindings/src/conversions

1 file changed

+1
-3
lines changed

crates/bevy_mod_scripting_bindings/src/conversions/primitive.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,7 @@ mod tests {
418418
boxed.unwrap().try_downcast_ref::<String>().unwrap(),
419419
expected.unwrap()
420420
);
421-
} else if *ty == TypeId::of::<&'static str>() {
422-
assert!(boxed.is_none());
423-
} else if *ty == TypeId::of::<Cow<str>>() {
421+
} else if *ty == TypeId::of::<&'static str>() || *ty == TypeId::of::<Cow<str>>() {
424422
assert!(boxed.is_none());
425423
} else if *ty == TypeId::of::<PathBuf>() {
426424
assert_eq!(

0 commit comments

Comments
 (0)