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.
::
$crate::
crate::
1 parent 5343f4e commit 5e9e7b9Copy full SHA for 5e9e7b9
src/macros.rs
@@ -268,7 +268,8 @@ macro_rules! c_enum {
268
269
// Use a specific type if provided, otherwise default to `c_uint`
270
(@ty $repr:ty) => { $repr };
271
- (@ty) => { $crate::c_uint };
+ // This has a space after `$crate` to avoid matching the regex for `crate::`.
272
+ (@ty) => { $crate :: c_uint };
273
}
274
275
// This is a pretty horrible hack to allow us to conditionally mark some functions as 'const',
0 commit comments