alignment

This commit is contained in:
Max Bradbury 2020-10-17 11:38:47 +01:00
parent 5aa0c94810
commit 676c71cd45
1 changed files with 12 additions and 12 deletions

View File

@ -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()
}