From 676c71cd45164a189a1b81d53f287e84277d178b Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sat, 17 Oct 2020 11:38:47 +0100 Subject: [PATCH] alignment --- src/exit.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/exit.rs b/src/exit.rs index 9f1d14d..9d37cee 100644 --- a/src/exit.rs +++ b/src/exit.rs @@ -19,15 +19,15 @@ pub enum Transition { impl From<&str> for Transition { fn from(str: &str) -> Transition { match str { - "fade_w" => Transition::FadeToWhite, - "fade_b" => Transition::FadeToBlack, - "wave" => Transition::Wave, - "tunnel" => Transition::Tunnel, + "fade_w" => Transition::FadeToWhite, + "fade_b" => Transition::FadeToBlack, + "wave" => Transition::Wave, + "tunnel" => Transition::Tunnel, "slide_u" => Transition::SlideUp, "slide_d" => Transition::SlideDown, "slide_l" => Transition::SlideLeft, "slide_r" => Transition::SlideRight, - _ => Transition::None, + _ => Transition::None, } } } @@ -37,13 +37,13 @@ impl ToString for Transition { match &self { Transition::FadeToWhite => " FX fade_w", Transition::FadeToBlack => " FX fade_b", - Transition::Wave => " FX wave", - Transition::Tunnel => " FX tunnel", - Transition::SlideUp => " FX slide_u", - Transition::SlideDown => " FX slide_d", - Transition::SlideLeft => " FX slide_l", - Transition::SlideRight => " FX slide_r", - Transition::None => "", + Transition::Wave => " FX wave", + Transition::Tunnel => " FX tunnel", + Transition::SlideUp => " FX slide_u", + Transition::SlideDown => " FX slide_d", + Transition::SlideLeft => " FX slide_l", + Transition::SlideRight => " FX slide_r", + Transition::None => "", } .to_string() }