[PATCH 6.12.y 45/60] rust: str: test: replace `alloc::format`