diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-12-31 05:52:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 05:52:45 +0000 |
commit | 1723e30d25f0c6068f9532448b016a89aa491a95 (patch) | |
tree | 543790b11a4fdc3c82f7f0b0ebc1cbc79d1c2009 /alacritty_terminal/src/index.rs | |
parent | 0aa1df327bf5c3e7892ad13d949be7e598aafda9 (diff) | |
download | alacritty-1723e30d25f0c6068f9532448b016a89aa491a95.tar.gz alacritty-1723e30d25f0c6068f9532448b016a89aa491a95.zip |
Use ConfigDeserialize for all config enums
This fixes up all of the remaining enums which are used in the
configuration file to make sure they all support fully case insensitive
deserialization.
Fixes #4611.
Diffstat (limited to 'alacritty_terminal/src/index.rs')
-rw-r--r-- | alacritty_terminal/src/index.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alacritty_terminal/src/index.rs b/alacritty_terminal/src/index.rs index 8b84b7f5..4b0d6943 100644 --- a/alacritty_terminal/src/index.rs +++ b/alacritty_terminal/src/index.rs @@ -45,7 +45,7 @@ pub enum Boundary { } /// Index in the grid using row, column notation. -#[derive(Debug, Clone, Copy, Default, Eq, PartialEq, Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug, Clone, Copy, Default, Eq, PartialEq)] pub struct Point<L = Line> { pub line: L, pub col: Column, @@ -199,7 +199,7 @@ impl From<&RenderableCell> for Point<Line> { /// A line. /// /// Newtype to avoid passing values incorrectly. -#[derive(Debug, Copy, Clone, Eq, PartialEq, Default, Ord, PartialOrd, Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug, Copy, Clone, Eq, PartialEq, Default, Ord, PartialOrd)] pub struct Line(pub usize); impl fmt::Display for Line { @@ -211,7 +211,7 @@ impl fmt::Display for Line { /// A column. /// /// Newtype to avoid passing values incorrectly. -#[derive(Debug, Copy, Clone, Eq, PartialEq, Default, Ord, PartialOrd, Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug, Copy, Clone, Eq, PartialEq, Default, Ord, PartialOrd)] pub struct Column(pub usize); impl fmt::Display for Column { |