mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-18 20:36:03 +00:00
unix: Avoid name conversions in `remove_dir_all_recursive` Each recursive call was creating an `OsString` for a `&Path`, only for it to be turned into a `CString` right away. Instead we can directly pass `.name_cstr()`, saving two allocations each time.