From 6a5a3f47cce98d4000037e9e64fbe48c3062e931 Mon Sep 17 00:00:00 2001 From: Reinis Mazeiks Date: Sat, 7 May 2022 00:59:12 +0300 Subject: [PATCH] Remove `allow(deprecated)` to bring back the warnings --- packages/html/src/lib.rs | 2 +- packages/tui/src/hooks.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/html/src/lib.rs b/packages/html/src/lib.rs index 4247bf39b..bff22ec5e 100644 --- a/packages/html/src/lib.rs +++ b/packages/html/src/lib.rs @@ -15,10 +15,10 @@ mod elements; mod events; +pub mod geometry; mod global_attributes; #[cfg(feature = "wasm-bind")] mod web_sys_bind; -mod geometry; pub use elements::*; pub use events::*; diff --git a/packages/tui/src/hooks.rs b/packages/tui/src/hooks.rs index 29ce634be..04d320fcb 100644 --- a/packages/tui/src/hooks.rs +++ b/packages/tui/src/hooks.rs @@ -94,7 +94,6 @@ impl InnerInputState { // stores current input state and transforms events based on that state fn apply_event(&mut self, evt: &mut EventCore) { - #[allow(deprecated)] match evt.1 { // limitations: only two buttons may be held at once EventData::Mouse(ref mut m) => match &mut self.mouse { @@ -607,7 +606,6 @@ fn get_event(evt: TermEvent) -> Option<(&'static str, EventData)> { // The `offset`, `page` and `screen` coordinates are inconsistent with the MDN definition, as they are relative to the viewport (client), not the target element/page/screen, respectively. // todo? // But then, MDN defines them in terms of pixels, yet crossterm provides only row/column, and it might not be possible to get pixels. So we can't get 100% consistency anyway. - #[allow(deprecated)] EventData::Mouse(MouseData { alt_key: alt, button: button_state,