Commit 4026269346

402626934683ae5a435071a4523cb6e633c81433

parent: 2ac6207b6e

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2020-06-27 11:58 UTC

config: Format the file.

Layout: unified · split

src/config.rs +3 −4
@@ -39,10 +39,10 @@ pub struct ConfigHandle {
39#[strum(serialize_all = "kebab_case")] 39#[strum(serialize_all = "kebab_case")]
40pub enum Test { 40pub enum Test {
41 First, 41 First,
42 Second 42 Second,
43} 43}
44 44
45impl Default for Test{ 45impl Default for Test {
46 fn default() -> Self { 46 fn default() -> Self {
47 Test::First 47 Test::First
48 } 48 }
@@ -53,7 +53,7 @@ impl From<i32> for Test {
53 match value { 53 match value {
54 0 => Test::First, 54 0 => Test::First,
55 1 => Test::Second, 55 1 => Test::Second,
56 _ => unreachable!() 56 _ => unreachable!(),
57 } 57 }
58 } 58 }
59} 59}
@@ -124,7 +124,6 @@ macro_rules! enum_create {
124 }; 124 };
125} 125}
126 126
127
128macro_rules! option_getter { 127macro_rules! option_getter {
129 ($option_type:ident, $option_name:ident, $output_type:ty) => { 128 ($option_type:ident, $option_name:ident, $output_type:ty) => {
130 paste::item! { 129 paste::item! {