From 3a897d940c0343d3d18f37e07bbb22e7811e7e0a Mon Sep 17 00:00:00 2001 From: Chris Biscardi Date: Wed, 15 Apr 2026 22:17:22 -0700 Subject: [PATCH] Taffy nightly lint updates (#54037) Fixes a new lint on nightly, which crops up in gpui's taffy integration [error logs from main's build](https://github.com/zed-industries/zed/actions/runs/24491477164/job/71577226631). Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #ISSUE Release Notes: - N/A --- crates/gpui/src/taffy.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/gpui/src/taffy.rs b/crates/gpui/src/taffy.rs index 094b65553d9abac1c0b32fc44333fddde12ed64c..475af08308c7ed5f3cb1c1ace7c300fd0e896d25 100644 --- a/crates/gpui/src/taffy.rs +++ b/crates/gpui/src/taffy.rs @@ -314,20 +314,23 @@ impl ToTaffy for Style { match template.min_size { // grid-template-*: repeat(, minmax(0, 1fr)); crate::TemplateColumnMinSize::Zero => { - vec![repeat(template.repeat, vec![minmax(length(0.0), fr(1.0))])] + vec![repeat( + template.repeat, + vec![minmax(length(0.0_f32), fr(1.0_f32))], + )] } // grid-template-*: repeat(, minmax(min-content, 1fr)); crate::TemplateColumnMinSize::MinContent => { vec![repeat( template.repeat, - vec![minmax(min_content(), fr(1.0))], + vec![minmax(min_content(), fr(1.0_f32))], )] } // grid-template-*: repeat(, minmax(0, max-content)) crate::TemplateColumnMinSize::MaxContent => { vec![repeat( template.repeat, - vec![minmax(length(0.0), max_content())], + vec![minmax(length(0.0_f32), max_content())], )] } }