Skip to content

Commit

Permalink
Use usize::MAX over legacy usize::max_value()
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Apr 7, 2024
1 parent 47518be commit 95b9f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/log_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ impl LogViewBase {
// For scrolling we need to subtract some padding
self.cached_size.x.saturating_sub(2)
} else {
usize::max_value()
usize::MAX
};
// NOTE: incremental update is not possible (since the references in the rows to the
// content will be wrong)
Expand Down

0 comments on commit 95b9f6d

Please sign in to comment.