FIX: Make clippy happy (#521)
This commit is contained in:
committed by
GitHub
parent
a2d11a42cc
commit
1b38d79b81
@@ -445,11 +445,13 @@ impl Default for Fill {
|
|||||||
|
|
||||||
#[derive(Serialize, Deserialize, Encode, Decode, Debug, PartialEq, Eq, Clone)]
|
#[derive(Serialize, Deserialize, Encode, Decode, Debug, PartialEq, Eq, Clone)]
|
||||||
#[serde(rename_all = "lowercase")]
|
#[serde(rename_all = "lowercase")]
|
||||||
|
#[derive(Default)]
|
||||||
pub enum HorizontalAlignment {
|
pub enum HorizontalAlignment {
|
||||||
Center,
|
Center,
|
||||||
CenterContinuous,
|
CenterContinuous,
|
||||||
Distributed,
|
Distributed,
|
||||||
Fill,
|
Fill,
|
||||||
|
#[default]
|
||||||
General,
|
General,
|
||||||
Justify,
|
Justify,
|
||||||
Left,
|
Left,
|
||||||
@@ -457,11 +459,6 @@ pub enum HorizontalAlignment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Note that alignment in "General" depends on type
|
// Note that alignment in "General" depends on type
|
||||||
impl Default for HorizontalAlignment {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self::General
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl HorizontalAlignment {
|
impl HorizontalAlignment {
|
||||||
fn is_default(&self) -> bool {
|
fn is_default(&self) -> bool {
|
||||||
@@ -487,7 +484,9 @@ impl Display for HorizontalAlignment {
|
|||||||
|
|
||||||
#[derive(Serialize, Deserialize, Encode, Decode, Debug, PartialEq, Eq, Clone)]
|
#[derive(Serialize, Deserialize, Encode, Decode, Debug, PartialEq, Eq, Clone)]
|
||||||
#[serde(rename_all = "lowercase")]
|
#[serde(rename_all = "lowercase")]
|
||||||
|
#[derive(Default)]
|
||||||
pub enum VerticalAlignment {
|
pub enum VerticalAlignment {
|
||||||
|
#[default]
|
||||||
Bottom,
|
Bottom,
|
||||||
Center,
|
Center,
|
||||||
Distributed,
|
Distributed,
|
||||||
@@ -501,12 +500,6 @@ impl VerticalAlignment {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for VerticalAlignment {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self::Bottom
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Display for VerticalAlignment {
|
impl Display for VerticalAlignment {
|
||||||
fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
|
fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||||
match self {
|
match self {
|
||||||
|
|||||||
Reference in New Issue
Block a user