Skip to content

Commit 6adeba7

Browse files
committed
Remove unnecessary reexport
1 parent 7428fb4 commit 6adeba7

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

enumflags/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub mod _internal {
152152

153153
// Re-export libcore so the macro doesn't inject "extern crate" downstream.
154154
pub mod core {
155-
pub use core::{convert, option, ops, compile_error};
155+
pub use core::{convert, option, ops};
156156
}
157157
}
158158

enumflags_derive/src/lib.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,11 @@ use std::convert::From;
1212
/// Shorthand for a quoted `compile_error!`.
1313
macro_rules! error {
1414
($span:expr => $($x:tt)*) => {
15-
quote_spanned!($span =>
16-
::enumflags2::_internal::core::compile_error!($($x)*);
17-
)
15+
quote_spanned!($span => compile_error!($($x)*);)
1816
};
1917
($($x:tt)*) => {
20-
quote!(
21-
::enumflags2::_internal::core::compile_error!($($x)*);
22-
)
23-
}
18+
quote!(compile_error!($($x)*);)
19+
};
2420
}
2521

2622
#[proc_macro_derive(BitFlags_internal)]

0 commit comments

Comments
 (0)