1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

enforce and fix a bunch of clippy issues

This commit is contained in:
Emil Ernerfeldt
2020-05-07 10:47:03 +02:00
parent 077cc3d8d1
commit 87e3aacf35
25 changed files with 90 additions and 67 deletions

View File

@@ -2,7 +2,7 @@ use crate::math::*;
/// What the integration gives to the gui.
/// All coordinates in emigui is in point/logical coordinates.
#[derive(Clone, Debug, Default, Deserialize)]
#[derive(Clone, Debug, Default, serde_derive::Deserialize)]
#[serde(default)]
pub struct RawInput {
/// Is the button currently down?
@@ -84,7 +84,7 @@ pub struct GuiInput {
pub events: Vec<Event>,
}
#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd, Deserialize)]
#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd, serde_derive::Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum Event {
Copy,
@@ -97,7 +97,7 @@ pub enum Event {
},
}
#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd, Deserialize)]
#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd, serde_derive::Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum Key {
Alt,