We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75f1209 commit c0571c8Copy full SHA for c0571c8
src/lua_sim.rs
@@ -58,7 +58,8 @@ impl LuaSim {
58
key_table.set("modifiers", format!("{:?}", key_event.modifiers))?;
59
key_table.set("kind", format!("{:?}", key_event.kind))?;
60
61
- self.simulation_instance
+ let _: () = self
62
+ .simulation_instance
63
.as_ref()
64
.unwrap()
65
.call_method("handle_key_events", key_table)?;
src/main.rs
@@ -119,7 +119,7 @@ fn check_size(
119
let height = terminal_size.height as usize;
120
if width != current_width || height != current_height {
121
app.change_dimensions(width as usize, height as usize);
122
- simulation.call_method("set_particles", app.particles.clone())?;
+ let _: () = simulation.call_method("set_particles", app.particles.clone())?;
123
}
124
125
Ok(())
0 commit comments