From f3644422c4975bb544b5d2746106c0f79f1ab8e8 Mon Sep 17 00:00:00 2001 From: sagudev <16504129+sagudev@users.noreply.github.com> Date: Tue, 5 Aug 2025 14:43:16 +0200 Subject: [PATCH] layout: Separate `LayoutDamage` bit patterns nibbles with `_` (#38476) Using `_` on such long bit patterns makes them easier to read. Testing: Just formatting. Fixes: #38474 Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --- components/shared/layout/layout_damage.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/shared/layout/layout_damage.rs b/components/shared/layout/layout_damage.rs index 498de01131b..3cefc04035c 100644 --- a/components/shared/layout/layout_damage.rs +++ b/components/shared/layout/layout_damage.rs @@ -12,10 +12,10 @@ bitflags! { pub struct LayoutDamage: u16 { /// Recollect the box children for this element, because some of the them will be /// rebuilt. - const RECOLLECT_BOX_TREE_CHILDREN = 0b011111111111 << 4; + const RECOLLECT_BOX_TREE_CHILDREN = 0b0111_1111_1111 << 4; /// Rebuild the entire box for this element, which means that every part of layout /// needs to happena again. - const REBUILD_BOX = 0b111111111111 << 4; + const REBUILD_BOX = 0b1111_1111_1111 << 4; } }