Skip to content

Commit

Permalink
fix: add fallback branch to match statement
Browse files Browse the repository at this point in the history
I hate this hack, but it's the only one that seems to work.
  • Loading branch information
BD103 committed Dec 19, 2024
1 parent 806d8c5 commit 499d63b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/reflection/reflection_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ fn setup() {
// implementation. Opaque is implemented for opaque types like String and Instant,
// but also include primitive types like i32, usize, and f32 (despite not technically being opaque).
ReflectRef::Opaque(_) => {}
#[allow(
unreachable_patterns,
reason = "This example cannot always detect when `bevy_reflect/functions` is enabled."
)]
_ => {}
}

let mut dynamic_list = DynamicList::default();
Expand Down

0 comments on commit 499d63b

Please sign in to comment.