Skip to content

Commit

Permalink
Tune up lints for 1.75 Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Jan 2, 2024
1 parent 4b205cc commit d1c02ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ pub struct Table {

impl Table {
pub fn row_width(&self) -> usize {
self.rows.get(0).map(Vec::len).unwrap_or_default()
self.rows.first().map(Vec::len).unwrap_or_default()
}
}

Expand Down

0 comments on commit d1c02ce

Please sign in to comment.