diff --git a/2022/rust/src/solutions/day14.rs b/2022/rust/src/solutions/day14.rs index f0e8192..a24469c 100644 --- a/2022/rust/src/solutions/day14.rs +++ b/2022/rust/src/solutions/day14.rs @@ -1,5 +1,4 @@ #![allow(dead_code)] -use std::fmt::{Display, Formatter}; use regex::Regex; use crate::utils; use crate::utils::matrix::Matrix; @@ -18,17 +17,6 @@ pub fn run() -> () { #[derive(Copy, Clone, PartialEq)] enum Tile { Empty, Rock, Sand } -impl Display for Tile { - fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { - match self { - Tile::Empty => write!(f, ".")?, - Tile::Rock => write!(f, "#")?, - Tile::Sand => write!(f, "o")?, - }; - Ok(()) - } -} - fn get_data_bounds(data: &[Vec<(usize, usize)>]) -> (usize, (usize, usize)) { data.iter()