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 {
|
impl From<&str> for Transition {
|
||||||
fn from(str: &str) -> Transition {
|
fn from(str: &str) -> Transition {
|
||||||
match str {
|
match str {
|
||||||
"fade_w" => Transition::FadeToWhite,
|
"fade_w" => Transition::FadeToWhite,
|
||||||
"fade_b" => Transition::FadeToBlack,
|
"fade_b" => Transition::FadeToBlack,
|
||||||
"wave" => Transition::Wave,
|
"wave" => Transition::Wave,
|
||||||
"tunnel" => Transition::Tunnel,
|
"tunnel" => Transition::Tunnel,
|
||||||
"slide_u" => Transition::SlideUp,
|
"slide_u" => Transition::SlideUp,
|
||||||
"slide_d" => Transition::SlideDown,
|
"slide_d" => Transition::SlideDown,
|
||||||
"slide_l" => Transition::SlideLeft,
|
"slide_l" => Transition::SlideLeft,
|
||||||
"slide_r" => Transition::SlideRight,
|
"slide_r" => Transition::SlideRight,
|
||||||
_ => Transition::None,
|
_ => Transition::None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,13 +37,13 @@ impl ToString for Transition {
|
||||||
match &self {
|
match &self {
|
||||||
Transition::FadeToWhite => " FX fade_w",
|
Transition::FadeToWhite => " FX fade_w",
|
||||||
Transition::FadeToBlack => " FX fade_b",
|
Transition::FadeToBlack => " FX fade_b",
|
||||||
Transition::Wave => " FX wave",
|
Transition::Wave => " FX wave",
|
||||||
Transition::Tunnel => " FX tunnel",
|
Transition::Tunnel => " FX tunnel",
|
||||||
Transition::SlideUp => " FX slide_u",
|
Transition::SlideUp => " FX slide_u",
|
||||||
Transition::SlideDown => " FX slide_d",
|
Transition::SlideDown => " FX slide_d",
|
||||||
Transition::SlideLeft => " FX slide_l",
|
Transition::SlideLeft => " FX slide_l",
|
||||||
Transition::SlideRight => " FX slide_r",
|
Transition::SlideRight => " FX slide_r",
|
||||||
Transition::None => "",
|
Transition::None => "",
|
||||||
}
|
}
|
||||||
.to_string()
|
.to_string()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue