Skip to content

Commit

Permalink
Fix rust issue #123748 <rust-lang/rust#123748>
Browse files Browse the repository at this point in the history
  • Loading branch information
Jala3400 committed Dec 24, 2024
1 parent 75f1209 commit c0571c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lua_sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ impl LuaSim {
key_table.set("modifiers", format!("{:?}", key_event.modifiers))?;
key_table.set("kind", format!("{:?}", key_event.kind))?;

self.simulation_instance
let _: () = self
.simulation_instance
.as_ref()
.unwrap()
.call_method("handle_key_events", key_table)?;
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn check_size(
let height = terminal_size.height as usize;
if width != current_width || height != current_height {
app.change_dimensions(width as usize, height as usize);
simulation.call_method("set_particles", app.particles.clone())?;
let _: () = simulation.call_method("set_particles", app.particles.clone())?;
}

Ok(())
Expand Down

0 comments on commit c0571c8

Please sign in to comment.