mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
## Summary - Replace `.to_string()` with `.into_owned()` on `Cow<str>` results from `String::from_utf8_lossy()` - Replace `.to_string()` with `.clone()` on `&String` to avoid Display trait allocation - Optimizes 13 instances across 7 binding files Fixes #10295 ## Test plan - [ ] Build passes (`cargo check` verified locally) - [ ] CI tests pass 🤖 Generated with [Claude Code](https://claude.ai/claude-code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Donny/강동윤 <[email protected]>