Why this fires¶
value as str mixes casting with formatting. It remains available only as a
migration bridge.
Fix it¶
Use the formatting API explicitly:
let label = value.to_string()Use a codec such as json.encode when producing a wire format.
`value as str` mixes casting with formatting, and remains available only as a migration bridge. Use `.to_string()` explicitly, or a codec such as `json.encode` when producing a wire format.