From f7f08d9aba5bd941fb46f604cb35d00b92271c9c Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sat, 17 Oct 2020 13:55:33 +0100 Subject: [PATCH] more concise import --- src/exit.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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",