Skip to content

feat(settings): add owned string allocation for Settings struct - #5

Merged
lispking merged 2 commits into
lispking:mainfrom
yizhinailong:main
Apr 16, 2026
Merged

feat(settings): add owned string allocation for Settings struct#5
lispking merged 2 commits into
lispking:mainfrom
yizhinailong:main

Conversation

@yizhinailong

Copy link
Copy Markdown
Contributor
  • Add toOwned method to Settings that creates heap-allocated copies of all string fields
  • Update load function to use heap-owned string allocations by default when creating new settings files
  • Update error handling to ensure all string fields are heap-owned when parsing fails and defaults are used
  • Add documentation for the new toOwned method explaining memory ownership requirements

yizhinailong and others added 2 commits April 16, 2026 16:04
- Add `toOwned` method to Settings that creates heap-allocated copies
  of all string fields
- Update load function to use heap-owned string allocations by
  default when creating new settings files
- Update error handling to ensure all string fields are heap-owned
  when parsing fails and defaults are used
- Add documentation for the new toOwned method explaining memory
  ownership requirements
@lispking
lispking merged commit 350f72c into lispking:main Apr 16, 2026
2 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