Closed ctaggart closed 4 years ago
I couldn't get this to work with &[u8]
. It complains about no implementation for &[u8;24]
or similar. I think it needs constant generics. https://github.com/rust-lang/rust/issues/44580
I implemented it for &str
.
See if we can simplify
to
Also use
CString
to wrap a regular Rust string.