From 614234ad13d34ba8d370abdd26582b567de71b52 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Tue, 29 Sep 2026 19:53:06 +0800 Subject: [PATCH] ci: test on custom log on without nesting --- examples/patch-examples/examples/log.rs | 2 +- examples/patch-examples/outputs/log-with-box.txt | 3 ++- examples/patch-examples/outputs/log-without-nesting.txt | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/patch-examples/examples/log.rs b/examples/patch-examples/examples/log.rs index 48e9865..69c1c7a 100644 --- a/examples/patch-examples/examples/log.rs +++ b/examples/patch-examples/examples/log.rs @@ -65,7 +65,7 @@ fn main() { config.apply_with_log( ConfigPatch { host: None, - port: None, + port: Some(8081), }, |field| { println!("[custom_log] patch field '{}' was updated", field); diff --git a/examples/patch-examples/outputs/log-with-box.txt b/examples/patch-examples/outputs/log-with-box.txt index 1246073..8c39f58 100644 --- a/examples/patch-examples/outputs/log-with-box.txt +++ b/examples/patch-examples/outputs/log-with-box.txt @@ -4,4 +4,5 @@ host=localhost, port=8080 --- Patch: apply_with_log() with custom format --- -host=localhost, port=8080 +[custom_log] patch field 'port' was updated +host=localhost, port=8081 diff --git a/examples/patch-examples/outputs/log-without-nesting.txt b/examples/patch-examples/outputs/log-without-nesting.txt index 1246073..8c39f58 100644 --- a/examples/patch-examples/outputs/log-without-nesting.txt +++ b/examples/patch-examples/outputs/log-without-nesting.txt @@ -4,4 +4,5 @@ host=localhost, port=8080 --- Patch: apply_with_log() with custom format --- -host=localhost, port=8080 +[custom_log] patch field 'port' was updated +host=localhost, port=8081