Skip to content

Commit

Permalink
Tabs...? In 2023...?
Browse files Browse the repository at this point in the history
  • Loading branch information
Aphoh committed Mar 22, 2023
1 parent 30d6443 commit 8a413d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kate/grid/src/dims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ impl Extension {
}
}

pub const fn width_unchecked(factor: usize) -> Self {
pub const fn width_unchecked(factor: usize) -> Self {
Self {
height_factor: nonzero_unchecked(1),
width_factor: nonzero_unchecked(factor),
}
}
}
}

#[allow(unconditional_panic)]
Expand Down
4 changes: 2 additions & 2 deletions kate/grid/src/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ impl<A: Clone> ColumnMajor<A> {
if x >= self.width() {
return None;
}
let start = x.checked_mul(self.height())?;
let end = x.checked_add(1)?.checked_mul(self.height())?;
let start = x.checked_mul(self.height())?;
let end = x.checked_add(1)?.checked_mul(self.height())?;
Some(&self.inner[start..end])
}

Expand Down

0 comments on commit 8a413d8

Please sign in to comment.