chore: clippy fixes

This commit is contained in:
Amaan Qureshi 2024-09-27 15:42:38 -04:00
parent b2359e4020
commit 90efa34608
12 changed files with 47 additions and 43 deletions

View file

@ -23,11 +23,13 @@ impl std::fmt::Display for Utf8Point {
}
impl Utf8Point {
#[must_use]
pub const fn new(row: usize, column: usize) -> Self {
Self { row, column }
}
}
#[must_use]
pub fn to_utf8_point(point: Point, source: &[u8]) -> Utf8Point {
if point.column == 0 {
return Utf8Point::new(point.row, 0);