Skip to content

Commit c0571c8

Browse files
committed
Fix rust issue #123748 <rust-lang/rust#123748>
1 parent 75f1209 commit c0571c8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/lua_sim.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ impl LuaSim {
5858
key_table.set("modifiers", format!("{:?}", key_event.modifiers))?;
5959
key_table.set("kind", format!("{:?}", key_event.kind))?;
6060

61-
self.simulation_instance
61+
let _: () = self
62+
.simulation_instance
6263
.as_ref()
6364
.unwrap()
6465
.call_method("handle_key_events", key_table)?;

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ fn check_size(
119119
let height = terminal_size.height as usize;
120120
if width != current_width || height != current_height {
121121
app.change_dimensions(width as usize, height as usize);
122-
simulation.call_method("set_particles", app.particles.clone())?;
122+
let _: () = simulation.call_method("set_particles", app.particles.clone())?;
123123
}
124124

125125
Ok(())

0 commit comments

Comments
 (0)