diff options
author | Melody Horn <melody@boringcactus.com> | 2021-03-07 10:47:42 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-03-07 10:47:42 -0700 |
commit | b8bb816d72217c1afdb18858481db737e52a4e7f (patch) | |
tree | 96664eb8a38e7c435e2c2e8a3432cc55118d7bd2 /src/main.rs | |
parent | d5083f4cce47567644fd1b2c5923e5d0dcd98d44 (diff) | |
download | hope-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.rs | 2 |
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() { |