diff --git a/custom_debug_derive/src/tests.rs b/custom_debug_derive/src/tests.rs index 1414adf..1151a31 100644 --- a/custom_debug_derive/src/tests.rs +++ b/custom_debug_derive/src/tests.rs @@ -170,7 +170,7 @@ fn test_conditional_skip() { let mut debug_builder = fmt.debug_struct("Point"); debug_builder.field("x", __binding_0); - if (Option::is_none(__binding_1)) { + if (!Option::is_none(__binding_1)) { debug_builder.field("y", __binding_1); }