Skip to content

Commit

Permalink
clean up some diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
luca3s authored and becheran committed May 15, 2024
1 parent 60bc5dc commit ce52afd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1648,14 +1648,14 @@ impl<T: Clone> From<(&Vec<T>, &usize)> for Grid<T> {
}
}

#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct GridRowIter<'a, T> {
grid: &'a Grid<T>,
row_start_index: usize,
row_end_index: usize,
}

#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct GridColIter<'a, T> {
grid: &'a Grid<T>,
col_start_index: usize,
Expand Down Expand Up @@ -3134,7 +3134,6 @@ mod test {
#[allow(clippy::redundant_closure_for_method_calls)]
fn iter_rows() {
let grid: Grid<u8> = grid![[1,2,3][4,5,6]];
print!("grid: {grid:?}");
let max_by_row: Vec<u8> = grid
.iter_rows()
.map(|row| row.max().unwrap())
Expand Down

0 comments on commit ce52afd

Please sign in to comment.