From 1dd0c4eaf825c09ec616218b1a1c40f62ac86b82 Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 13 Dec 2022 10:02:50 +0100 Subject: [PATCH] [rs] Clean up 2022_13 --- rs/src/y2022/d13.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/rs/src/y2022/d13.rs b/rs/src/y2022/d13.rs index ba08be3..91d851f 100644 --- a/rs/src/y2022/d13.rs +++ b/rs/src/y2022/d13.rs @@ -1,7 +1,6 @@ use std::cmp::Ordering; -use std::iter::Peekable; +use std::iter::{self, Peekable}; use std::str::Chars; -use std::{fmt, iter}; #[derive(Clone)] enum Message { @@ -9,15 +8,6 @@ enum Message { List(Vec), } -impl fmt::Debug for Message { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - match self { - Self::Int(int) => int.fmt(f), - Self::List(list) => f.debug_list().entries(list).finish(), - } - } -} - impl Ord for Message { fn cmp(&self, other: &Self) -> Ordering { match (self, other) {