chore: clippies

This commit is contained in:
2024-12-06 10:52:31 -08:00
parent 1dd3ce5862
commit 1cd535c2aa
2 changed files with 10 additions and 14 deletions

View File

@ -1,11 +1,11 @@
use std::{
fmt::{self, Debug, Display, Formatter, Write},
io::{BufRead, Cursor, Lines},
io::{BufRead, Lines},
};
#[derive(Clone)]
pub struct Grid<T> {
data: Vec<T>,
pub data: Vec<T>,
width: i64,
}
@ -132,7 +132,7 @@ impl<T: Copy + Eq + PartialEq + Display + Debug> Display for Grid<T> {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
for y in 0..self.height() {
for x in 0..self.width() {
self.get(x as i64, y as i64).fmt(f);
self.get(x as i64, y as i64).fmt(f)?;
}
}
f.write_char('\n')