1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Fix some minor clippy lints from the future

This commit is contained in:
Emil Ernerfeldt
2024-09-18 09:44:23 +02:00
parent 1474c17b0d
commit 4dd89e2052
10 changed files with 12 additions and 11 deletions

View File

@@ -222,7 +222,7 @@ impl Mesh {
pub fn split_to_u16(self) -> Vec<Mesh16> {
debug_assert!(self.is_valid());
const MAX_SIZE: u32 = std::u16::MAX as u32;
const MAX_SIZE: u32 = u16::MAX as u32;
if self.vertices.len() <= MAX_SIZE as usize {
// Common-case optimization: