alignment
This commit is contained in:
parent
5aa0c94810
commit
676c71cd45
24
src/exit.rs
24
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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue