Based on discussion in #432, open_readonly now accepts &[u8] instead of &str for path and asserts that it contains at least one zero byte. This allows to make the function safe and compiler should be able to remove the assert since we use static paths.
Based on discussion in #432,
open_readonly
now accepts&[u8]
instead of&str
for path and asserts that it contains at least one zero byte. This allows to make the function safe and compiler should be able to remove the assert since we use static paths.