Fix indentation in pmt_tests macro

The macro has unusual indentation, fix to to be more regular.
This commit is contained in:
Tobin C. Harding 2022-11-14 08:35:15 +11:00
parent a7edbfb52e
commit 5076579fb9
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 8 additions and 7 deletions

View File

@ -515,15 +515,16 @@ mod tests {
#[cfg(feature = "rand-std")] #[cfg(feature = "rand-std")]
macro_rules! pmt_tests { macro_rules! pmt_tests {
($($name:ident),* $(,)?) => { ($($name:ident),* $(,)?) => {
$( $(
#[test] #[test]
fn $name() { fn $name() {
pmt_test_from_name(stringify!($name)); pmt_test_from_name(stringify!($name));
}
)*
} }
)*
} }
}
#[cfg(feature = "rand-std")] #[cfg(feature = "rand-std")]
pmt_tests!( pmt_tests!(
pmt_test_1, pmt_test_1,