diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-03-31 12:09:14 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-03-31 12:09:14 +0200 |
| commit | 267f4b48de2ed6ecf5d21942c40955cb74790058 (patch) | |
| tree | 6b0deceb5e290da6715c9610448f5e317c1c73df /src | |
| parent | feat(plugin): refactored to a new and more general plugin API (diff) | |
| download | sl0ppij-267f4b48de2ed6ecf5d21942c40955cb74790058.tar.gz sl0ppij-267f4b48de2ed6ecf5d21942c40955cb74790058.tar.xz sl0ppij-267f4b48de2ed6ecf5d21942c40955cb74790058.zip | |
Fix(Mouse): Remove unimplemented! Macro for Mouse
Remove `unimplemented!` macro for mouse and unsupported events,
essentialy mimicking the NoOp.
Should not crash anymore when handling mouse events.
Alternatives:
Keep the `unimplemented!` macro for `termion::event::Event::Unsupported` ?
closes #243
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/input/handler.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs index 33f4e5dc..8de1ed3c 100644 --- a/src/common/input/handler.rs +++ b/src/common/input/handler.rs @@ -81,7 +81,8 @@ impl InputHandler { } termion::event::Event::Mouse(_) | termion::event::Event::Unsupported(_) => { - unimplemented!("Mouse and unsupported events aren't supported!"); + // Mouse and unsupported events aren't implemented yet, + // use a NoOp untill then. } }, Err(err) => panic!("Encountered read error: {:?}", err), |
