Remove allow(deprecated) to bring back the warnings

This commit is contained in:
Reinis Mazeiks committed 2022-05-07 00:59:12 +03:00
1 parent 3c447d7266
commit 6a5a3f47cc
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -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::*;
-2
View File
@@ -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,