aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-07 10:47:42 -0700
committerMelody Horn <melody@boringcactus.com>2021-03-07 10:47:42 -0700
commitb8bb816d72217c1afdb18858481db737e52a4e7f (patch)
tree96664eb8a38e7c435e2c2e8a3432cc55118d7bd2 /src/main.rs
parentd5083f4cce47567644fd1b2c5923e5d0dcd98d44 (diff)
downloadhope-b8bb816d72217c1afdb18858481db737e52a4e7f.tar.gz
hope-b8bb816d72217c1afdb18858481db737e52a4e7f.zip
don't waste time blocking for no reason
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 8617d6a..ef61de7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -112,7 +112,7 @@ fn main() {
("X".to_string(), actor::Value::Number(number::Number::from(mouse_x))),
("Y".to_string(), actor::Value::Number(number::Number::from(mouse_y))),
]);
- mouse_position.send(value).unwrap();
+ let _ = mouse_position.try_send(value);
}
if let Ok(value) = screen_buffer.try_recv() {