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 fc9ed12 commit 3d80886Copy full SHA for 3d80886
src/macros.rs
@@ -251,7 +251,7 @@ macro_rules! c_enum {
251
252
// Use a specific type if provided, otherwise default to `c_uint`
253
(@ty $repr:ty) => { $repr };
254
- (@ty) => { /* $crate:: */ c_uint };
+ (@ty) => { /* $crate */ crate::c_uint };
255
}
256
257
// This is a pretty horrible hack to allow us to conditionally mark some functions as 'const',
@@ -372,8 +372,6 @@ macro_rules! __item {
372
373
#[cfg(test)]
374
mod tests {
375
- use crate::c_uint;
376
-
377
#[test]
378
fn c_enumbasic() {
379
// By default, variants get sequential values.
0 commit comments