( )⚙ D10007 rust: Introduce a get_bytes_from_os_str utility function

This is an archive of the discontinued Mercurial Phabricator instance.

rust: Introduce a get_bytes_from_os_str utility function
ClosedPublic

Authored by SimonSapin on Feb 17 2021, 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
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage