Skip to content

Commit

Permalink
Don't complain about unimplemented setters in release builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
heycam committed Jun 1, 2016
1 parent 55b0bb0 commit 18f7fdd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ports/geckolib/properties.mako.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 18f7fdd

Please sign in to comment.