more concise import

This commit is contained in:
Max Bradbury 2020-10-17 13:55:33 +01:00
parent 8068177736
commit f7f08d9aba
1 changed files with 2 additions and 3 deletions

View File

@ -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",