diff --git a/src/exit.rs b/src/exit.rs index 1f1fd4a..4c77214 100644 --- a/src/exit.rs +++ b/src/exit.rs @@ -1,7 +1,6 @@ use crate::Position; use std::str::FromStr; use std::fmt; -use std::fmt::{Display, Formatter}; #[derive(Clone, Debug, Eq, PartialEq)] pub enum Transition { @@ -32,8 +31,8 @@ impl From<&str> for Transition { } } -impl Display for Transition { - fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { +impl fmt::Display for Transition { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{}", match &self { Transition::FadeToWhite => " FX fade_w", Transition::FadeToBlack => " FX fade_b",