From 71ba563ecce48e1850282434d3bd68d148300abe Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Sun, 8 Feb 2026 15:15:41 +0100 Subject: [PATCH] Make `XLang` derive `Eq` and `Hash` This allows `XLang` to be used as a key in a `HashMap`. Signed-off-by: Martin Robinson --- style/values/specified/font.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style/values/specified/font.rs b/style/values/specified/font.rs index 7182698dea..db041a26de 100644 --- a/style/values/specified/font.rs +++ b/style/values/specified/font.rs @@ -1768,7 +1768,7 @@ impl XTextScale { ToShmem, ToTyped, )] -#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))] +#[cfg_attr(feature = "servo", derive(Deserialize, Eq, Hash, Serialize))] /// Internal property that reflects the lang attribute pub struct XLang(#[css(skip)] pub Atom);