chore: Removing warnings in all but main playground crate

This commit is contained in:
2026-11-22 17:12:21 +01:00
parent 34e5215001
commit 2910314df3
16 changed files with 136 additions and 523 deletions
+4 -2
View File
@@ -598,7 +598,9 @@ impl Profile
let fspan = full.1 - full.0;
let norm: (f64, f64) = ui.data_mut(|d| d.get_temp(id)).unwrap_or((0.0, 1.0));
let mut view = (full.0 + norm.0 * fspan, full.0 + norm.1 * fspan);
if !(view.1 > view.0) || !view.0.is_finite() || !view.1.is_finite()
if !(egui::emath::OrderedFloat(view.1) > egui::emath::OrderedFloat(view.0))
|| !view.0.is_finite()
|| !view.1.is_finite()
{
view = full;
}
@@ -668,7 +670,7 @@ impl Profile
{
hovered = Some(i);
}
let mut color = color_for(&s.name);
let mut color = color_for(s.name);
if is_hovered
{
color = color.gamma_multiply(1.15);
+2 -2
View File
@@ -120,7 +120,7 @@ impl MemoryProfile
}
}
pub fn begin(&mut self, device: &wgpu::Device) -> Device
pub fn begin(&mut self, device: &wgpu::Device) -> Device<'_>
{
Device {
device: device.clone(),
@@ -195,7 +195,7 @@ impl Group
}
// Print subgroups
for (i, group) in self.sub_groups.iter().enumerate()
for group in self.sub_groups.iter()
{
group.fmt_with_indent(f, indent + 1)?;
}