From 4621f0335bccd52a0fa99a5b8e56639b2e975cd5 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Wed, 6 Mar 2024 17:52:34 +0100 Subject: [PATCH] remove `non_exhaustive` from `Hints`, upd docs --- hui/src/measure.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hui/src/measure.rs b/hui/src/measure.rs index e416314..b0cd7ac 100644 --- a/hui/src/measure.rs +++ b/hui/src/measure.rs @@ -2,8 +2,8 @@ use glam::Vec2; +// #[non_exhaustive] #[derive(Default)] -#[non_exhaustive] pub struct Hints { pub inner_content_size: Option, pub inner_content_size_cache: Option>, @@ -23,6 +23,7 @@ pub struct Response { /// If true, the element should always cause the content to wrap to the next line\ /// (the element itself gets wrapped to the next line too) - /// You should almost never set this + /// + /// You should almost never set this, and the exact behavior may change in the future pub should_wrap: bool, }