Skip to content

Commit 49a6acc

Browse files
committed
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.
1 parent 2300b28 commit 49a6acc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internals/src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ macro_rules! debug_from_display {
139139
/// Asserts a boolean expression at compile time.
140140
#[macro_export]
141141
macro_rules! const_assert {
142-
($x:expr) => {{
142+
($x:expr) => {
143143
const _: [(); 0 - !$x as usize] = [];
144-
}};
144+
};
145145
}
146146

147147
/// Derives `From<core::convert::Infallible>` for the given type.

0 commit comments

Comments
 (0)