Skip to content

Commit

Permalink
register Cow<'static, str> for reflection (bevyengine#5664)
Browse files Browse the repository at this point in the history
# Objective

Fixes bevyengine#5597

## Solution

Registered type at suggested place.
  • Loading branch information
maccesch authored and ItsDoot committed Feb 1, 2023
1 parent a4d3b8a commit 979e710
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/bevy_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub mod prelude {
use bevy_app::prelude::*;
use bevy_ecs::entity::Entity;
use bevy_utils::HashSet;
use std::borrow::Cow;
use std::ops::Range;

/// Adds core functionality to Apps.
Expand All @@ -43,7 +44,8 @@ fn register_rust_types(app: &mut App) {
app.register_type::<Range<f32>>()
.register_type::<String>()
.register_type::<HashSet<String>>()
.register_type::<Option<String>>();
.register_type::<Option<String>>()
.register_type::<Cow<'static, str>>();
}

fn register_math_types(app: &mut App) {
Expand Down

0 comments on commit 979e710

Please sign in to comment.