From b71ffc4f20b19e3ab59840774007f4726c2b8743 Mon Sep 17 00:00:00 2001 From: landon Date: Sat, 22 Aug 2026 09:47:02 -0500 Subject: [PATCH] Suffix the drop-indicator stroke width to avoid the f32 fallback egui's Stroke::new takes `width: impl Into`, so the unsuffixed 2.0 literal had no concrete type to infer from and relied on rustc falling back to f32. That fallback is being removed (rust#154024), and the float_literal_f32_fallback lint already warns it will become a hard error, so spell the type out as 2.0_f32. No behaviour change - the literal was already compiling as f32. The only other Stroke::new call site passes an f32 variable and was unaffected. cargo build is now warning-free; clippy is down to the four long-standing warnings in odt.rs and order.rs. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01GBWj9TphFMCoh7VHaSRnvQ --- src/app/file_list.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/file_list.rs b/src/app/file_list.rs index 2ebc852..ee48961 100644 --- a/src/app/file_list.rs +++ b/src/app/file_list.rs @@ -84,8 +84,12 @@ impl App { ui.painter().hline( rect.x_range(), y, + // `Stroke::new` takes `impl Into`, which + // gives an unsuffixed literal no concrete type + // to infer; suffix it rather than lean on the + // f32 fallback that rustc is removing. egui::Stroke::new( - 2.0, + 2.0_f32, ui.visuals().selection.stroke.color, ), );