Skip to content

Commit 3d80886

Browse files
committed
More ctest hacks
1 parent fc9ed12 commit 3d80886

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/macros.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ macro_rules! c_enum {
251251

252252
// Use a specific type if provided, otherwise default to `c_uint`
253253
(@ty $repr:ty) => { $repr };
254-
(@ty) => { /* $crate:: */ c_uint };
254+
(@ty) => { /* $crate */ crate::c_uint };
255255
}
256256

257257
// This is a pretty horrible hack to allow us to conditionally mark some functions as 'const',
@@ -372,8 +372,6 @@ macro_rules! __item {
372372

373373
#[cfg(test)]
374374
mod tests {
375-
use crate::c_uint;
376-
377375
#[test]
378376
fn c_enumbasic() {
379377
// By default, variants get sequential values.

0 commit comments

Comments
 (0)