aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ports/geckolib/properties.mako.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/ports/geckolib/properties.mako.rs b/ports/geckolib/properties.mako.rs
index d1497324474..d6ec0d59de2 100644
--- a/ports/geckolib/properties.mako.rs
+++ b/ports/geckolib/properties.mako.rs
@@ -425,10 +425,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 {