Skip to content

Fix panic due to string slicing at char boundary#3025

Open
ginnyTheCat wants to merge 1 commit intoserde-rs:masterfrom
ginnyTheCat:rename_ascii
Open

Fix panic due to string slicing at char boundary#3025
ginnyTheCat wants to merge 1 commit intoserde-rs:masterfrom
ginnyTheCat:rename_ascii

Conversation

@ginnyTheCat
Copy link

@ginnyTheCat ginnyTheCat commented Jan 24, 2026

This is a alternative solution to fix #2953 than #3024 by continuing to just support ASCII but not panic in this unwanted case.

Since this only makes code that didn't compile before compile now I would not consider this a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Bug: #[serde(rename_all = "camelCase")] panics on struct fields with non-ASCII (e.g., CJK) identifiers

1 participant