Clean up fmt imports

This commit is contained in:
Tyler Hallada 2021-12-11 01:42:26 -05:00
parent f4a556940f
commit 139e86548c

View File

@ -1,6 +1,6 @@
use anyhow::{anyhow, Error, Result}; use anyhow::{anyhow, Error, Result};
use common::instrument; use common::instrument;
use std::fmt; use std::fmt::{self, Display, Formatter};
use std::str::FromStr; use std::str::FromStr;
const INPUT: &str = include_str!("input/input.txt"); const INPUT: &str = include_str!("input/input.txt");
@ -24,8 +24,8 @@ impl FromStr for Cavern {
} }
} }
impl fmt::Display for Cavern { impl Display for Cavern {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
for y in 0..10 { for y in 0..10 {
for x in 0..10 { for x in 0..10 {
if self.grid[y][x] > 9 { if self.grid[y][x] > 9 {