We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e60e5 commit b63cd15Copy full SHA for b63cd15
src/raw/cstr.rs
@@ -105,7 +105,7 @@ pub const fn assert_valid_cstr<T: ValidCStr>() {}
105
106
#[macro_export]
107
macro_rules! cstr {
108
- ($text:expr) => {{
+ ($text:literal) => {{
109
const VALIDATED: Option<&$crate::raw::CStr> = $crate::raw::validate_cstr($text);
110
const VALID: bool = VALIDATED.is_some();
111
$crate::raw::assert_valid_cstr::<$crate::raw::IsValidCStr<VALID>>();
0 commit comments