internals: Remove double parenthesis in const_assert

The current `const_assert` macro is unused in the code base. We would
like to use it differently to how it was initially designed, remove the
parenthesis so it can be called directly in a module.
This commit is contained in:
Tobin C. Harding 2024-07-06 14:37:56 +10:00
parent 2300b285ef
commit 49a6acc1a0
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 2 deletions

View File

@ -139,9 +139,9 @@ macro_rules! debug_from_display {
/// Asserts a boolean expression at compile time.
#[macro_export]
macro_rules! const_assert {
($x:expr) => {{
($x:expr) => {
const _: [(); 0 - !$x as usize] = [];
}};
};
}
/// Derives `From<core::convert::Infallible>` for the given type.