From 18f7fdd26a4e4375964f5963bbb0a0a2828bf5c8 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Fri, 27 May 2016 11:40:13 +1000 Subject: [PATCH] Don't complain about unimplemented setters in release builds. --- ports/geckolib/properties.mako.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ports/geckolib/properties.mako.rs b/ports/geckolib/properties.mako.rs index 8a8a25c1b70..f05f9520e12 100644 --- a/ports/geckolib/properties.mako.rs +++ b/ports/geckolib/properties.mako.rs @@ -420,10 +420,14 @@ impl ${style_struct.trait_name} for ${style_struct.gecko_struct_name} { */ % for longhand in stub_longhands: fn set_${longhand.ident}(&mut self, _: longhands::${longhand.ident}::computed_value::T) { - println!("stylo: Unimplemented property setter: ${longhand.name}"); + if cfg!(debug_assertions) { + println!("stylo: Unimplemented property setter: ${longhand.name}"); + } } fn copy_${longhand.ident}_from(&mut self, _: &Self) { - println!("stylo: Unimplemented property setter: ${longhand.name}"); + if cfg!(debug_assertions) { + println!("stylo: Unimplemented property setter: ${longhand.name}"); + } } % if longhand.need_clone: fn clone_${longhand.ident}(&self) -> longhands::${longhand.ident}::computed_value::T {