rust: Introduce a get_bytes_from_os_str utility function...
rust: Introduce a get_bytes_from_os_str utility function
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.
Differential Revision:
https://phab.mercurial-scm.org/D10007