Skip to content

Commit

Permalink
fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Aug 8, 2024
1 parent ce41f2a commit aaec2de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bevy_rapier2d/examples/serialization2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ fn main() {
.run();
}

pub fn print_physics(context: Res<RapierContext>) {
pub fn print_physics(_context: Res<RapierContext>) {
#[cfg(feature = "serde-serialize")]
println!(
"{}",
serde_json::to_string_pretty(&(*context)).expect("Unable to serialize `RapierContext`")
serde_json::to_string_pretty(&(*_context)).expect("Unable to serialize `RapierContext`")
);
#[cfg(not(feature = "serde-serialize"))]
panic!("Example 'serialization' should be run with '--features serde-serialize'.");
Expand Down

0 comments on commit aaec2de

Please sign in to comment.