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 {
3939#[strum(serialize_all = "kebab_case")]
4040pub enum Test {
4141 First,
42 Second
42 Second,
4343}
4444
45impl Default for Test{
45impl Default for Test {
4646 fn default() -> Self {
4747 Test::First
4848 }
@@ -53,7 +53,7 @@ impl From<i32> for Test {
5353 match value {
5454 0 => Test::First,
5555 1 => Test::Second,
56 _ => unreachable!()
56 _ => unreachable!(),
5757 }
5858 }
5959}
@@ -124,7 +124,6 @@ macro_rules! enum_create {
124124 };
125125}
126126
127
128127macro_rules! option_getter {
129128 ($option_type:ident, $option_name:ident, $output_type:ty) => {
130129 paste::item! {