more concise import
This commit is contained in:
parent
8068177736
commit
f7f08d9aba
|
@ -1,7 +1,6 @@
|
||||||
use crate::Position;
|
use crate::Position;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::fmt::{Display, Formatter};
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||||
pub enum Transition {
|
pub enum Transition {
|
||||||
|
@ -32,8 +31,8 @@ impl From<&str> for Transition {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Display for Transition {
|
impl fmt::Display for Transition {
|
||||||
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
write!(f, "{}", match &self {
|
write!(f, "{}", match &self {
|
||||||
Transition::FadeToWhite => " FX fade_w",
|
Transition::FadeToWhite => " FX fade_w",
|
||||||
Transition::FadeToBlack => " FX fade_b",
|
Transition::FadeToBlack => " FX fade_b",
|
||||||
|
|
Loading…
Reference in New Issue