Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/patch-examples/examples/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion examples/patch-examples/outputs/log-with-box.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion examples/patch-examples/outputs/log-without-nesting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading