Skip to content
ZOLO / TE839 Type · error

stringification through `as str` is legacy behavior

`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.

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.

Global index

Find your way through Zolo

Try an idea

Start here

9 results

9 results

enespt-br