Skip to content

improvements#2494

Merged
Sebastian Thiel (Byron) merged 2 commits intomainfrom
improvements
Mar 28, 2026
Merged

improvements#2494
Sebastian Thiel (Byron) merged 2 commits intomainfrom
improvements

Conversation

@Byron
Copy link
Copy Markdown
Member

Improve set_raw_value in gix-config

`set_raw_value()` and `set_raw_value_filter()` no longer require`
config's `'event` lifetime internally.

This makes the setter APIs consistent with the read-only raw accessors
and allows short-lived key inputs, such as String-backed values, to be
used without forcing an extra borrow at the call site.

Add a regression test covering short-lived keys passed to
set_raw_value()

Co-authored-by: Sebastian Thiel <sebastian.thiel@icloud.com>
Co-authored-by: Sebastian Thiel <sebastian.thiel@icloud.com>
@Byron Sebastian Thiel (Byron) merged commit 50fb46f into main Mar 28, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants