mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
clippy fixes from 1.69.0
This commit is contained in:
@@ -3,10 +3,11 @@
|
||||
use crate::*;
|
||||
|
||||
/// left/center/right or top/center/bottom alignment for e.g. anchors and layouts.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||
pub enum Align {
|
||||
/// Left or top.
|
||||
#[default]
|
||||
Min,
|
||||
|
||||
/// Horizontal or vertical center.
|
||||
@@ -136,13 +137,6 @@ impl Align {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Align {
|
||||
#[inline(always)]
|
||||
fn default() -> Align {
|
||||
Align::Min
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
/// Two-dimension alignment, e.g. [`Align2::LEFT_TOP`].
|
||||
|
||||
Reference in New Issue
Block a user