Skip to content

Commit

Permalink
make deserialize public
Browse files Browse the repository at this point in the history
  • Loading branch information
bbarker committed Nov 29, 2023
1 parent e26406e commit f740000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_serde_macros"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["Brandon Barker <[email protected]>"]
description = "Macros for easing use of serde on bevy entities and components"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fn revive_or_rejuv_entity<'de, C: Component + Deserialize<'de>, M: Component + C
}

#[allow(dead_code)]
fn deserialize<C: Component + DeserializeOwned, M: Component + Clone>(
pub fn deserialize<C: Component + DeserializeOwned, M: Component + Clone>(
world: &mut World,
entity_map: &mut HashMap<Entity, Entity>,
component_json_obj: &mut HashMap<String, Value>,
Expand Down

0 comments on commit f740000

Please sign in to comment.