From 84fed1a62f795790b41fb8cc7adf3fa18cc4e482 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 18 Aug 2016 15:43:09 +0200 Subject: [PATCH] Add missing try!() around write!() Fixes "unused result" warning. --- components/style/properties/properties.mako.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 7b19126aeb6..aaf9ddfe88c 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -468,7 +468,7 @@ fn append_serialization<'a, W, I>(dest: &mut W, return append_declaration_value(dest, appendable_value, is_important); } - write!(dest, "{}:", property_name); + try!(write!(dest, "{}:", property_name)); // for normal parsed values, add a space between key: and value match &appendable_value {