From 77befc9d475f3fce02819ca7e5877f3f911000b2 Mon Sep 17 00:00:00 2001 From: panicbit Date: Mon, 22 Jan 2024 06:55:51 +0100 Subject: [PATCH] fixup! add `skip_if` test --- custom_debug_derive/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }