Page MenuHomePhabricator

rust: Introduce a get_bytes_from_os_str utility function
ClosedPublic

Authored by SimonSapin on Wed, Feb 17, 7:58 AM.

Details

Summary

It does the same as get_bytes_from_path but takes an OsStr
instead of a Path. The implementation is the same so using either
ends up correct but the function name suggests it’s not.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.