Change the type of the URI constant to CStr or URI #47
Labels
🦀 Blocked on Rust feature
Implementing this requires Rust features that aren't stabilized yet
🌟 Ergonomics
Little things that matter! Does not add functionality, but makes an API easier to use
This is a request from Reddit (link to comment) to change the type of the
URI
constant of theUriBound
trait toCStr
orUri
. Then, the constant would be created with thefrom_bytes_with_nul_unchecked
function, which explicitly says that the input has to contain a null character and why this trait is unsafe to implement.This is mostly a cosmetic change, but a good and helpful one.
The text was updated successfully, but these errors were encountered: