Skip to content

Commit

Permalink
Remove unnecessary reference wrangling
Browse files Browse the repository at this point in the history
Former-commit-id: 82e2124
  • Loading branch information
janhohenheim committed Mar 14, 2023
1 parent acd1787 commit 6f18904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file_system_interaction/game_state_serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn handle_save_requests(
player_query: Query<&GlobalTransform, With<Player>>,
current_level: Res<CurrentLevel>,
) -> Result<()> {
let dialog = dialog.map(|ref dialog| dialog.as_ref().clone());
let dialog = dialog.map(|dialog| dialog.clone());
for save in save_events.iter() {
for player in &player_query {
let dialog_event = dialog.clone().map(|dialog| DialogEvent {
Expand Down

0 comments on commit 6f18904

Please sign in to comment.