Remove allow(deprecated) to bring back the warnings
This commit is contained in:
1 parent
3c447d7266
commit
6a5a3f47cc
2 files changed
+1
-3
No files matched your search
@@ -15,10 +15,10 @@
|
|||||||
|
|
||||||
mod elements;
|
mod elements;
|
||||||
mod events;
|
mod events;
|
||||||
|
pub mod geometry;
|
||||||
mod global_attributes;
|
mod global_attributes;
|
||||||
#[cfg(feature = "wasm-bind")]
|
#[cfg(feature = "wasm-bind")]
|
||||||
mod web_sys_bind;
|
mod web_sys_bind;
|
||||||
mod geometry;
|
|
||||||
|
|
||||||
pub use elements::*;
|
pub use elements::*;
|
||||||
pub use events::*;
|
pub use events::*;
|
||||||
|
|||||||
@@ -94,7 +94,6 @@ impl InnerInputState {
|
|||||||
|
|
||||||
// stores current input state and transforms events based on that state
|
// stores current input state and transforms events based on that state
|
||||||
fn apply_event(&mut self, evt: &mut EventCore) {
|
fn apply_event(&mut self, evt: &mut EventCore) {
|
||||||
#[allow(deprecated)]
|
|
||||||
match evt.1 {
|
match evt.1 {
|
||||||
// limitations: only two buttons may be held at once
|
// limitations: only two buttons may be held at once
|
||||||
EventData::Mouse(ref mut m) => match &mut self.mouse {
|
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.
|
// 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?
|
// 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.
|
// 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 {
|
EventData::Mouse(MouseData {
|
||||||
alt_key: alt,
|
alt_key: alt,
|
||||||
button: button_state,
|
button: button_state,
|
||||||
|
|||||||
Reference in new issue
Block a user