From 3bcf64be7bd190f00522886f7fd557dcfc7c6d22 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 3 May 2018 12:14:41 +0200 Subject: [PATCH] Silence an 'unused' warning --- components/style/servo/restyle_damage.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/style/servo/restyle_damage.rs b/components/style/servo/restyle_damage.rs index da682119eaf..5cde20c9658 100644 --- a/components/style/servo/restyle_damage.rs +++ b/components/style/servo/restyle_damage.rs @@ -191,7 +191,8 @@ fn compute_damage(old: &ComputedValues, new: &ComputedValues) -> ServoRestyleDam // This should check every CSS property, as enumerated in the fields of // http://doc.servo.org/style/properties/struct.ComputedValues.html - restyle_damage_rebuild_and_reflow!( + // This uses short-circuiting boolean OR for its side effects and ignores the result. + let _ = restyle_damage_rebuild_and_reflow!( old, new, damage,